LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-23-2013, 06:00 AM   #1
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
Error from pgplot


Hello, everybody
I've installed pgplot5.2 using gfortran. When I run the python script, which use pgplot libraries, I receive the following error:
ImportError: /home/science_tools/pgplot5.2/libpgplot.so: undefined symbol: _gfortran_st_close
What should I do in this situation? I'll be grateful for your help
 
Old 04-26-2013, 04:41 PM   #2
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0, RHEL5,6), CentOS, SuSE (10.x, 11.x, 12.2, 13.2), Solaris (8-10), Tru64, MacOS, Raspian
Posts: 1,137

Rep: Reputation: 65
Quote:
Originally Posted by nebula View Post
Hello, everybody
I've installed pgplot5.2 using gfortran. When I run the python script, which use pgplot libraries, I receive the following error:
ImportError: /home/science_tools/pgplot5.2/libpgplot.so: undefined symbol: _gfortran_st_close
If you google for that error message, you'll see a bunch of links to pages that all seem to involve some sort of compile error that causes the linker to fail. Have you tried any sample FORTRAN or C programs from the PGplot web site to verify that the library has been built correctly? (Maybe there's even a "make test" step that you can run.)

Also, I understand that there is supposed to be a Python module, Ppgplot, that lets you use the pgplot library. Are you using that? I'm wondering if the cause of the error you're seeing is that you're not using that module.

(Caveat: I'm not an expert Python programmer by the stretch of anyone's imagination. I'm just throwing out the simple troubleshooting ideas that I'd be trying.)

HTH...

--
Rick
 
Old 04-27-2013, 04:00 PM   #3
nebula
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
The problem has been solved. It was necessary to link gfortran in the python script because it uses f77 for default.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Some problem on installing pgplot on Linux (error on X11) lengyue Linux - Newbie 4 12-13-2010 09:03 PM
pgplot shared libraries error tbenavid Linux - Software 1 09-22-2010 11:32 PM
pgplot problem sarahf60 Linux - Newbie 17 08-15-2010 12:43 PM
Pgplot mghuffman Linux - Software 15 03-04-2010 08:27 AM


All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration