Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
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.
I posted my similar question in September and got solved. Now I have another basic question. I install pgplot in Fedora13 where has no f77, no g77, only has f95 and gfortran. I run in csh shell, not bash. I install pgplot according to the instructions given by Dr.Pearson ( pgplot installation Manual version 5.3). What I did is as follows:
1.cd /usr/local/src/pgplot
2.cd sys_linux
3.cp g77_gcc.conf local.conf
4.vi local.conf (in the certain line to change the 'g77' into 'f95')
5.cp local.conf /usr/local/pgplot
6.cd /usr/local/pgplot
7./usr/local/src/pgplot/makemake /usr/local/src/pgplot linux local
8.make
9.make clean
10. setenv PGPLOT_DIR /usr/local/pgplot/
setenv PGPLOT_DEV /xwindow
setenv LD_LIBRARY_PATH $PGPLOT_DIR
11. ./pgdemo1
It works.
My question is: when I open another terminal, this new termonal is also
in the same directory (/usr/local/pgplot), I can not do ./pgdemo1 again, I must repeat the above steps from step 7 to step 10, then in this new terminal it works.
Dr.Pearson wanted me to ask experts to solve this question.
In addition, my own previous programs (which use pgplot) also must move
to the directory /usr/local/pgplot to compile and run.
Because I am an old man, not familiar with computers, so I need help.
seeing as fedora dose not use the folder /usr/local
it is NOT in the system $PATH
install it to just /usr
or
ad /usr/local ( and all the sub directory’s) to the system PATH in /etc/profile
seeing as you are using csh and not fedora's default bash ( /etc/bashrc)
there might be a system wide setting in /etc for csh
There is a 'csh.login' in /etc,# /etc/csh.login, it appears as follows:
--------------------------------------------------------------------
# System wide environment and startup programs, for login setup
if ( $?PATH ) then
#do not override user specified PATH
else
if ( $uid == 0 ) then
setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/local/pgplot"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/pgplot"
endif
endif
setenv HOSTNAME `/bin/hostname`
set history=1000
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r $i ) then
if ($?prompt) then
source $i
else
source $i >& /dev/null
endif
endif
end
unset i nonomatch
endif
-----------------------------------------------------------------------
unfortunately, I do not understand C language, so I can not modify it.
Could you please tell me how to modify it?
Many thanks
2) f77, g77 : both are present in Fedora 13 : compat-gcc-34-g77
3) /home/<name>/<any-folder>/ may be a much more convenient location
for a special version.
4) Setting a permanent path for csh : A script can be added to /etc/profile.d :
The following is an example script from Slackware 12:
/etc/profile.d/jdk.csh
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.