473,398 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Problem installing ppgplot

Hi,

I want to install pgplot but I can't really get it to work. Here is
what I did; pgplot libraries are installed in ~/pgplot

-downloaded ppgplot-1.1.tar.gz from
http://www.astro.rug.nl/~breddels/python/ppgplot/

-PGPLOT_DIR was set correctly, so I tried python setup.py install, but
that stopped saying

-------------------------------------------------------------
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-I/homes/emiddelb/local2/include/python2.2/Numeric
-I/homes/emiddelb/local2/include/python2.2 -c ppgplot.c -o
build/temp.linux-i686-2.2/ppgplot.o

ppgplot.c:21: cpgplot.h: No such file or directory
-------------------------------------------------------------

-I found a website describing that error
(http://www.astro.rub.de/laboca/downl..._for_boa.html). I
copied cpgplot.h to my local include dir as I don't have root
permissions and re-ran the install script. Apparently, the gcc command
now worked, but another one now crashed:

-------------------------------------------------------------
gcc -shared build/temp.linux-i686-2.2/ppgplot.o -L/usr/X11R6/lib/
-L/homes/emiddelb/pgplot -L/usr/X11R6/lib/ -lcpgplot -lpgplot -lX11
-lm -lg2c -o build/lib.linux-i686-2.2/ppgplot.so

/usr/i486-linux/bin/ld: cannot open -lcpgplot: No such file or
directory
collect2: ld returned 1 exit status
-------------------------------------------------------------

I had the suspicion that the "-lcpgplot" was not correct, as the
pgplot distribution does not contain any other files named cpgplot.*
except for cpgplot.h and a cpgplot.c demonstration file.

I therefore tried to run the gcc command without "-lcpgplot" and got a
file called "ppgplot.so" in the "build/lib.linux-i686-2.2/"
subdirectory. I copied that file to
~/lib/python2.2/site-packages/ppgplot/ppgplot.so, i.e., to a directory
similar to all the other local packages, but now when I try to use it,
I get an error saying "ImportError: No module named ppgplot".

I still suspect that the installation is incomplete because all the
other packages have at least some python files.

Can someone give me a hint on how to fix this? I'm not a great
programmer and I do not know much of libraries and those things, I
just want to _use_ ppgplot :-/
Cheers,

Enno
Jul 18 '05 #1
2 2332
On 20 Aug 2003 12:07:06 GMT,
Enno Middelberg <em******@mpifr-bonn.mpg.de> wrote:
I had the suspicion that the "-lcpgplot" was not correct, as the
pgplot distribution does not contain any other files named cpgplot.*
except for cpgplot.h and a cpgplot.c demonstration file.


The correct file to look for is libcpgplot.a.

--amk
Jul 18 '05 #2
On 20 Aug 2003 12:38:08 GMT,
copying build/lib.linux-i686-2.2/ppgplot.so ->
/homes/emiddelb/local2/lib/python2.2/site-packages


Hm. Is the /homes/emiddelb/... directory in Python's path? You can check
by doing "import sys ; print sys.path".

If the directory isn't in sys.path, you can add it by either setting the
PYTHONPATH environment variable before running Python, or by modifying
sys.path; it's just a list of strings, so you can do
sys.path.append('/homes/....').

If it *is* on the path, then I'm puzzled. Running 'python -v' will cause
Python to print out each filename it tries; maybe the file has strange
permissions or something.

--amk
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dennis Hore | last post by:
I'm trying to install Nick Patavalis' ppgplot package on Mac OS X 10.3 with python 2.3. I first sent this message to Nick, but he said he doesn't have any experience with the Mac platform. ...
5
by: fripper | last post by:
I posted this problem a couple of days ago but felt I might have better luck re-stating the problem. Apparently I messed up IIS (v. 5) somehow because I am suddenly unable to load web forms! A...
1
by: santhosh_176 | last post by:
:I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables...
5
by: summerwind | last post by:
I have distributed my app to a few users without problems (Not too many anyway) using the packaging wizard. I now have a problem that it causing me a great deal of concern. My client has no MS...
1
by: AspDotNetDeveloper | last post by:
Hello, I have Windows 2003 Server with .Net Framework 1.1 installed (part of the OS), and have used Windows Update to install the Service Pack 2 (the only way you can install it). The install...
0
by: Benny Ng | last post by:
Hi,All, When i deploy Enterprise library with my application ,i used XCOPY to deploy it into my test server. But when application runs, shown some error related registry. (But actually I haven't...
1
by: sureshbup | last post by:
Hi to all, I am trying to install CPAN modules using the command perl -MCPAN -e 'install qw (Text::CSV_XS)' but i get the problem like this even i changed the working proxies but none is...
5
by: John | last post by:
Hi I have an Outlook add-in solution which includes a setup project. If I install the Outlook add-in by right clicking on the setup project and sleeting Install then the add-in gets installed...
0
by: trihaitran | last post by:
I am reading chapter two of the Pylons book. In the text I am told to run: $ python virtualenv.py --no-site-packages env This is what I got back: $ python virtualenv.py --no-site-packages...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.