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 07-09-2012, 01:12 PM   #1
ansatz
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Rep: Reputation: Disabled
C compiler and software installation


Hi all, I'm a computer-challenged physics student using Scientific Linux 6.2 through a virtual machine (on my Windows laptop), and since it was installed for me by others I don't really know what's on it (yes, I was stupid). I'm trying to install the software on this page: http://laplace.physics.ubc.ca/People/matt/rnpletal.html

When I follow the instructions, installation appears to fail because there is no working C compiler. I tried to install gcc, which I thought would include a C compiler, but configuration also seemed to fail because it couldn't find a C compiler, rather like opening a box which holds its own key... Is it possible that the compiler is there on the system but I don't know where it is? If so, how could I find it, and if not where do I get a compiler? I'm probably being really really stupid, but I would really appreciate some help. Thanks!
 
Old 07-09-2012, 01:29 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Better have a separate scientific linux install.

#su
#yum install gcc xforms* etc
 
Old 07-09-2012, 01:47 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
GCC as a standalone package will not work.

# yum install gcc-c++ xforms
.. will also install packages to make gcc a full functional compiler.

'xforms' is in the rpmforge.repo

.
 
Old 07-10-2012, 09:23 AM   #4
ansatz
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks amani and knudfl, I was able to get the C compiler working that way. However, I still don't have a Fortan compiler, which I thought was supposed to come with gcc? Also, xforms was not recognized as a package, so I don't know how to get its dependencies. How can I find what packages are available?
 
Old 07-10-2012, 12:18 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
'xforms' : Add the rpmforge.repo ( Temporarily )
http://repoforge.org/use/

Or install the rpm package : http://pkgs.repoforge.org/xforms/
# yum localinstall --nogpgcheck xforms-1.0.91-1.el6.rf.<arch>.rpm

32bits http://pkgs.repoforge.org/xforms/xfo...l6.rf.i686.rpm
64bits http://pkgs.repoforge.org/xforms/xfo....rf.x86_64.rpm
.... And : xforms-devel-1.0.91-1.el6.rf.<arch>.rpm is required too.
Note : No dependencies would usually be required for xforms / xforms-devel.


Fortran : # yum install gcc-gfortran
The old g77 : # yum install compat-gcc-34-g77

Finding a package name : yum search <name> ( or part of name.)
Like : yum search fortran

P.S. : 'rnpletal' installs to Scientific Linux SL6.x with no errors.

.

Last edited by knudfl; 07-10-2012 at 01:08 PM.
 
Old 07-10-2012, 05:15 PM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
also install yumex ... for the GUI way
 
Old 07-10-2012, 06:08 PM   #7
ansatz
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks a lot knudfl, that was really helpful. However, RNPL didn't install correctly for me, I think because it couldn't find the bbhutil.h library. I'm not sure what that refers to? This was also a problem when I tried to install xvs. Also, I need version 6.2 of the jpeg libraries and headers. I have the latest version, but only the earlier version is compatible with what I'm trying to install. How do I find and download older versions? Sorry about all the stupid questions...

Last edited by ansatz; 07-10-2012 at 06:15 PM.
 
Old 07-11-2012, 02:29 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
# 7

The install command(s) example : 1) su
2) cd rpnletal/ && ./Install.gnu /usr/local
.... ( The test install, ref.post #5 : xforms-devel was installed.
But none of mpeg_encode-1.5c, xvs, DV were installed.)


The header "bbhutil.h" ( Not a library ) is located in :
rnpletal/rnpl/src/bbhutil.h

Finding files : The find command ...
cd rpnletal/ && find . -name "bbhutil.h"

P.S. : About xvs : Please read the file README, line 47.

.

Last edited by knudfl; 07-11-2012 at 04:35 AM.
 
Old 07-11-2012, 04:24 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
All parts of "rpnletal/" should be compiled from the top directory.
Compiling a single library / application : Edit the script "PACKAGES.sh.


Example compiling / installing "rpnletal/rnpl/" only :

0) cd rpnletal/
1) cp PACKAGES.sh PACKAGES.sh-backup.txt
2) ... Edit 'PACKAGES.sh' to :
Code:
PACKAGES="\
   rnpl \
"
3) ./Install.gnu <destination>/

.
 
Old 07-11-2012, 07:54 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
# 7
Quote:
I need version 6.2 of the jpeg libraries and headers.
I have the latest version, but only the earlier version
is compatible with what I'm trying to install.
Which application / library is requiring "jpeg-6.2" ? ?



'xvs' prerequisites :
1) A full install of "rnpletal" to /usr/local/.
2) # yum install \
libXpm-devel libXmu-devel compat-gcc-34-g77 compat-libf2c-34 \
mesa-libGL-devel mesa-libGLU-devel libjpeg-devel
3) cd /usr/lib/ ; # ln -s libg2c.so.0.0.0 libg2c.so

$ cd xvs/ && ./configure && make : No errors.

.

Last edited by knudfl; 07-11-2012 at 07:59 AM.
 
1 members found this post helpful.
Old 07-11-2012, 01:52 PM   #11
ansatz
LQ Newbie
 
Registered: Jul 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks again, knudfl. I thought you would be sick of answering my questions by now. You were right that I didn't need that specific version of the JPEG headers and libraries. RNPL was fome after I installed the parser-generator bison, and I think xvs and the mpeg_encode installed after that. However, I'm still having problems with DV. It seems to work for a while, but eventually there's a series of lines like this:

ctoirang.f.text+0x534): undefined reference to `_gfortran_string_index'

with string index replaced with other terms including compare_string, st_read, etc. After that, make error 1 appears several times and ultimately installation fails. What could be causing this?
 
Old 07-11-2012, 05:00 PM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,625

Rep: Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266Reputation: 3266
# 11.

I worked on DV too : No luck.
The errors "undefined reference to `_gfortran_string_index' " etc.
can be avoided by not using gfortran : # yum remove gfortran
# yum install compat-gcc-34-g77 : /usr/bin/g77 (f77) will be used.
... But then ( starting from scratch with a new unpacked DV ),
some other errors will appear.


.
 
  


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
Is this prob with my C compiler installation ?? vroom Linux - Software 2 09-05-2006 01:50 PM
Difficulty in installation (C compiler). lazicsavo Linux - Software 3 10-25-2004 02:23 PM
GCC compiler installation v333k Linux - Newbie 5 08-20-2004 03:17 PM
need help for installation of gcc compiler bush Linux - Distributions 4 05-16-2003 06:47 AM


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