LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 11-17-2010, 06:00 AM   #1
yba
LQ Newbie
 
Registered: Aug 2010
Location: Shanghai, China
Distribution: e-mail
Posts: 18

Rep: Reputation: 0
run pgplot in Fedora13


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.
 
Old 11-18-2010, 01:14 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 11-18-2010, 05:07 AM   #3
yba
LQ Newbie
 
Registered: Aug 2010
Location: Shanghai, China
Distribution: e-mail
Posts: 18

Original Poster
Rep: Reputation: 0
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
 
Old 11-18-2010, 10:01 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
1) The easy way is of course # yum install pgplot
... like already dealt with in your other pgplot thread :
http://www.linuxquestions.org/questi...ra13-827192/#5

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
Code:
#!/bin/csh
setenv JAVA_HOME /usr/lib/java
setenv MANPATH ${MANPATH}:/usr/lib/java/man
setenv PATH ${PATH}:/usr/lib/java/bin:/usr/lib/java/jre/bin
 
1 members found this post helpful.
  


Reply



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] how to install pgplot in Fedora13 yba Fedora 7 09-03-2010 04:57 PM
how to install pgplot in Fedora13 yba Fedora 1 08-19-2010 08:59 AM
Pgplot mghuffman Linux - Software 15 03-04-2010 08:27 AM
pgplot problem sarahf60 Linux - Newbie 5 02-25-2010 07:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 05:32 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