LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-24-2008, 11:03 AM   #16
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983

Quote:
khd@linux-4av4:/usr/bin> ln -s /usr/bin/gfortran g77
ln: creating symbolic link `g77': Permission denied
You have to be root to write in a system directory (/usr/bin). Anyway, not really needed. You can run directly gfortran without any symbolic link to g77, f77 or whatever.
Quote:
khd@linux-4av4:/usr/local/GME> gfortran -C -o gme.e gme.f ft2d.f sub.f
/usr/lib/gcc/i586-suse-linux/4.3/../../../../i586-suse-linux/bin/ld: cannotopen output file gme.e: Permission denied
collect2: ld returned 1 exit status
Same as above. You cannot write (create the executable) under /usr/local if you don't acquire root privileges. Hope this helps!
 
Old 12-27-2008, 08:19 AM   #17
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
gnuplot

hi and thanks for your great helps , they really worked and now i'm steppping forward, i could actually do it with that gfortran and the file gme.e appeared at the end . now i want to plot. i installed gnuplot and when i wrote the line " gnuplot gme.gnu " to creat a .ps file i got this error and i could't find out what the problem is .

gnuplot gme.gnu
"gme.gnu", line 47: warning: Skipping unreadable file "gme.out"
"gme.gnu", line 47: warning: Skipping unreadable file "gme_ll.out"
"gme.gnu", line 47: warning: Skipping unreadable file "gme_vl.out"
"gme.gnu", line 47: No data in plot

and also let me write the instruction to plot in the manual of the software package i work with :
HOW TO PLOT
A sample file gme.gnu is provided for plotting the photonic bands: use command
$ gnuplot gme.gnu
to create a postscript file gme.ps, which can then be viewed with $ gv or similar

as always your helps will solve the problem so i sent this to u and thank you for every thing.
regards
 
Old 12-27-2008, 09:20 AM   #18
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Have you executed the gme.e program? I guess the gme.out, gme_II.out and gme_vl.out are all outputs of the gme.e program. If these files have been created somewhere, either gnuplot does not look for them in the right place or the files have not the correct format.

Look at the gme.gnu file (it should be a script made of gnuplot commands) and try to figure out where it expects the files should be. If you see the searching path is correct (maybe just the current directory) do some step back and look at the fortran code to see if it creates the output files in the correct format. Check the gnuplot documentation to find out the required data format.
 
Old 01-02-2009, 02:07 PM   #19
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
libctl installation

hi and thank you for helps
i want to install libctl . i got the package from internet and extract it in the path usr/local/libctl
after running ./configure i ran make and after that make install like what was written in the installation guide
but the answer was
bash: make: command not found
i couldnt get the problem checking the config.log file
tnx

Last edited by minaesm; 01-02-2009 at 02:08 PM.
 
Old 01-02-2009, 11:57 PM   #20
samrat_rao
LQ Newbie
 
Registered: Nov 2008
Location: India
Posts: 29

Rep: Reputation: 16
You need to install gnumake. For example in openSUSE go to yast > software > software management. From here you need to install 'make'. Do a Google search get a little idea about what 'make' does.

And i think that you need to start a new thread for subsequent questions. This is getting too far from your original query.

Good luck.
 
Old 02-07-2009, 01:49 AM   #21
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Have you executed the gme.e program? I guess the gme.out, gme_II.out and gme_vl.out are all outputs of the gme.e program. If these files have been created somewhere, either gnuplot does not look for them in the right place or the files have not the correct format.

Look at the gme.gnu file (it should be a script made of gnuplot commands) and try to figure out where it expects the files should be. If you see the searching path is correct (maybe just the current directory) do some step back and look at the fortran code to see if it creates the output files in the correct format. Check the gnuplot documentation to find out the required data format.

hi
actually i execute the file gme.e and again i run the program but the output file gme.out is empty , i think it means that there is some thing wrong with the compile of the program , is'nt it true? how can i solve the problem to run correctly ?
 
Old 02-18-2009, 10:13 AM   #22
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post

now you have to match the requirements for your compilation. You have to look at the developer's site for useful information and read the README and/or INSTALL files inside the source directory. Regarding the FFTW libraries, they are the "Fastest Fourier Transform in the West", a collection of routines to compute the discrete Fourier transform. They are not installed by default on OpenSuSE 11, so you have to open the Yast - Software management and install the fftw and fftw-devel packages.
hi
i installed the fftw package form the DVD but again when i try to run the program , the erroe is this :configure: error: The FFTW libraries could not be found. Make sure FFTW is installed, and that LDFLAGS and CPPFLAGS are set appropriately if necessary.
 
Old 02-18-2009, 10:29 AM   #23
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Have you installed both the fftw and fftw-devel packages? Check where the include files and libraries have been installed:
Code:
$ rpm -ql fftw-devel | grep include
$ rpm -ql fftw-devel | grep lib
then try to specify the correct path using the environment variable LDFLAGS and CPPFLAGS as suggested. For example:
Code:
$ export LDFLAGS='-L/usr/lib'
$ export CPPFLAGS='-I/usr/include'
$ ./configure
You don't really need to export these variables if the include files and the libraries are in standard locations like /usr/lib and /usr/include, but you never know. It depends on the capability of the configure script to check in these standard places.

Moreover, note that OpenSUSE provides two versions of the FFTW library: fftw and fftw3. Be sure to have installed the older one (you can have both installed on your system) that is fftw and fftw-devel. This is because the mpb software looks for the older version.

Last edited by colucix; 02-18-2009 at 10:40 AM. Reason: Added additional information
 
Old 02-19-2009, 02:29 PM   #24
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
i could do that and i installed the FFTW . but now the error is this :
checking if linking to guile works... no
configure: error: guile-config is broken or Guile is not working.
what should i do to solve it?
 
Old 02-19-2009, 03:17 PM   #25
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe you have to install guile and guile-devel. Check if you have them already installed, otherwise use Yast Software Manager and search them
Code:
rpm -qa guile*
Just out of curiosity... didn't you already succeed in the installation of mpb? Maybe are you installing again on another machine?
 
Old 02-20-2009, 08:24 AM   #26
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Just out of curiosity... didn't you already succeed in the installation of mpb? Maybe are you installing again on another machine?
yeah i have to install it on different computers and everytime i encounter a new problem , just because of that i'm a newbie in Linux
 
Old 02-20-2009, 10:52 AM   #27
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Maybe you have to install guile and guile-devel. Check if you have them already installed
i have already installed guile and guile-devel . i think there is something wrong with linking it .
 
Old 02-20-2009, 11:49 AM   #28
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Where is guile installed? Did you install from source or from RPM binary packages? Try to see where the guile shared object are installed and eventually define the proper LDFLAGS and CPPFLAGS the same way I suggested in post #23 regarding fftw.

Which system are you installing on, this time? Is still opensuse? And which release?
 
Old 02-20-2009, 04:43 PM   #29
minaesm
Member
 
Registered: Oct 2008
Posts: 38

Original Poster
Blog Entries: 3

Rep: Reputation: 15
Quote:
Originally Posted by colucix View Post
Where is guile installed? Did you install from source or from RPM binary packages? Try to see where the guile shared object are installed and eventually define the proper LDFLAGS and CPPFLAGS the same way I suggested in post #23 regarding fftw.

Which system are you installing on, this time? Is still opensuse? And which release?
i tried this:
$ rpm -ql guile-devel | grep include
$ rpm -ql guile-devel | grep lib
$ export LDFLAGS='-L/usr/lib'
$ export CPPFLAGS='-I/usr/include'
$ ./configure

but again the same problem remains. did i do it correctly ? yeah it is again opensuse11
 
Old 02-20-2009, 04:53 PM   #30
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
What is the output of these commands?
Code:
$ rpm -ql guile-devel | grep include
$ rpm -ql guile-devel | grep lib
If it is null, then the guile-devel package is not installed. Try simply
Code:
rpm -q guile-devel
to find out or better use the Yast Software Manager to see all the installed and available guile packages at a glance. On my system I have:
Code:
$ rpm -q guile guile-devel
guile-1.8.5-22.23
guile-devel-1.8.5-22.23
$
$ rpm -ql guile-devel | grep lib/
/usr/lib/libguile-srfi-srfi-1-v-3.a
/usr/lib/libguile-srfi-srfi-13-14-v-3.a
/usr/lib/libguile-srfi-srfi-4-v-3.a
/usr/lib/libguile-srfi-srfi-60-v-2.a
/usr/lib/libguile.a
/usr/lib/libguilereadline-v-17.a
/usr/lib/pkgconfig/guile-1.8.pc
$
$ rpm -ql guile-devel | grep include
/usr/include/libguile
/usr/include/libguile.h
/usr/include/libguile/__scm.h
/usr/include/libguile/alist.h
/usr/include/libguile/arbiters.h
/usr/include/libguile/async.h
/usr/include/libguile/backtrace.h
/usr/include/libguile/boolean.h
/usr/include/libguile/chars.h
/usr/include/libguile/continuations.h
/usr/include/libguile/convert.h
/usr/include/libguile/debug-malloc.h
/usr/include/libguile/debug.h
/usr/include/libguile/deprecated.h
/usr/include/libguile/deprecation.h
/usr/include/libguile/discouraged.h
/usr/include/libguile/dynl.h
/usr/include/libguile/dynwind.h
/usr/include/libguile/environments.h
/usr/include/libguile/eq.h
/usr/include/libguile/error.h
/usr/include/libguile/eval.h
/usr/include/libguile/evalext.h
/usr/include/libguile/extensions.h
/usr/include/libguile/feature.h
/usr/include/libguile/filesys.h
/usr/include/libguile/fluids.h
/usr/include/libguile/fports.h
/usr/include/libguile/futures.h
/usr/include/libguile/gc.h
/usr/include/libguile/gdb_interface.h
/usr/include/libguile/gdbint.h
/usr/include/libguile/goops.h
/usr/include/libguile/gsubr.h
/usr/include/libguile/guardians.h
/usr/include/libguile/hash.h
/usr/include/libguile/hashtab.h
/usr/include/libguile/hooks.h
/usr/include/libguile/i18n.h
/usr/include/libguile/init.h
/usr/include/libguile/inline.h
/usr/include/libguile/ioext.h
/usr/include/libguile/iselect.h
/usr/include/libguile/keywords.h
/usr/include/libguile/lang.h
/usr/include/libguile/list.h
/usr/include/libguile/load.h
/usr/include/libguile/macros.h
/usr/include/libguile/mallocs.h
/usr/include/libguile/modules.h
/usr/include/libguile/net_db.h
/usr/include/libguile/null-threads.h
/usr/include/libguile/numbers.h
/usr/include/libguile/objects.h
/usr/include/libguile/objprop.h
/usr/include/libguile/options.h
/usr/include/libguile/pairs.h
/usr/include/libguile/ports.h
/usr/include/libguile/posix.h
/usr/include/libguile/print.h
/usr/include/libguile/procprop.h
/usr/include/libguile/procs.h
/usr/include/libguile/properties.h
/usr/include/libguile/pthread-threads.h
/usr/include/libguile/ramap.h
/usr/include/libguile/random.h
/usr/include/libguile/rdelim.h
/usr/include/libguile/read.h
/usr/include/libguile/regex-posix.h
/usr/include/libguile/root.h
/usr/include/libguile/rw.h
/usr/include/libguile/scmconfig.h
/usr/include/libguile/scmsigs.h
/usr/include/libguile/script.h
/usr/include/libguile/simpos.h
/usr/include/libguile/smob.h
/usr/include/libguile/snarf.h
/usr/include/libguile/socket.h
/usr/include/libguile/sort.h
/usr/include/libguile/srcprop.h
/usr/include/libguile/srfi-13.h
/usr/include/libguile/srfi-14.h
/usr/include/libguile/srfi-4.h
/usr/include/libguile/stackchk.h
/usr/include/libguile/stacks.h
/usr/include/libguile/stime.h
/usr/include/libguile/strings.h
/usr/include/libguile/strorder.h
/usr/include/libguile/strports.h
/usr/include/libguile/struct.h
/usr/include/libguile/symbols.h
/usr/include/libguile/tags.h
/usr/include/libguile/threads.h
/usr/include/libguile/throw.h
/usr/include/libguile/unif.h
/usr/include/libguile/validate.h
/usr/include/libguile/values.h
/usr/include/libguile/variable.h
/usr/include/libguile/vectors.h
/usr/include/libguile/version.h
/usr/include/libguile/vports.h
/usr/include/libguile/weaks.h
 
  


Reply

Tags
fortran


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
Grub problems after installing second hard disk and SuSE11.0 HellesAngel SUSE / openSUSE 46 09-15-2008 03:13 PM
Suse11 can not see windows systems in workgroup linuxlover.chaitanya SUSE / openSUSE 3 08-25-2008 01:16 AM
Not able to update Suse11. linuxlover.chaitanya SUSE / openSUSE 8 08-21-2008 12:05 AM
Open Suse11 RC wifi/ndiswrapper problem slacard SUSE / openSUSE 2 06-13-2008 06:35 PM
Dynamically set array length in Fortran77? halfpower Programming 2 12-15-2005 08:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:29 AM.

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
Open Source Consulting | Domain Registration