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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
12-24-2008, 11:03 AM
|
#16
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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!
|
|
|
12-27-2008, 08:19 AM
|
#17
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
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
|
|
|
12-27-2008, 09:20 AM
|
#18
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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.
|
|
|
01-02-2009, 02:07 PM
|
#19
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
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.
|
|
|
01-02-2009, 11:57 PM
|
#20
|
LQ Newbie
Registered: Nov 2008
Location: India
Posts: 29
Rep:
|
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.
|
|
|
02-07-2009, 01:49 AM
|
#21
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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 ?
|
|
|
02-18-2009, 10:13 AM
|
#22
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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.
|
|
|
02-18-2009, 10:29 AM
|
#23
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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
|
|
|
02-19-2009, 02:29 PM
|
#24
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
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?
|
|
|
02-19-2009, 03:17 PM
|
#25
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Maybe you have to install guile and guile-devel. Check if you have them already installed, otherwise use Yast Software Manager and search them
Just out of curiosity... didn't you already succeed in the installation of mpb? Maybe are you installing again on another machine?
|
|
|
02-20-2009, 08:24 AM
|
#26
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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
|
|
|
02-20-2009, 10:52 AM
|
#27
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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 .
|
|
|
02-20-2009, 11:49 AM
|
#28
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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?
|
|
|
02-20-2009, 04:43 PM
|
#29
|
Member
Registered: Oct 2008
Posts: 38
Original Poster
Rep:
|
Quote:
Originally Posted by colucix
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
|
|
|
02-20-2009, 04:53 PM
|
#30
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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
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
|
|
|
All times are GMT -5. The time now is 01:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|