LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-11-2013, 12:01 PM   #1
georgianao
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
Installing newest version on gcc on a cluster


I would like to install the latest version of gcc on a Linux cluster. I do not have administration privileges so I am trying to install it locally on my account.

So far I have tried following the directions included on http://www.levlafayette.com/node/137:

Installing gcc from source:
Download the latest version of the gcc file from:

http://ftp.gnu.org/gnu/gcc/gcc-4.8.1/
tar xvf gcc-4_8_1.tar.gz

cd /home/geo6/software
export SRCDIR="$(pwd)"
export PREFIX="/home/geo6/software/gcc-4.8.1"

rm -rf ../gcc-build
mkdir ../gcc-build
cd ../gcc-build
"$SRCDIR"/configure --prefix="$PREFIX" --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-mpfr=$MPFR_DIR --with-gmp=$GMP_DIR --with-mpc=$MPC_DIR

"$SRCDIR"/configure --prefix="$PREFIX" --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++,fortran --with-mpfr=$MPFR_DIR --with-gmp=$GMP_DIR --with-mpc=$MPC_DIR
-bash: /home/geo6/software/configure: No such file or directory

I got the error above , not sure if I am on the right track with the installation or how to fix the error. I have created many directories and I am confused what is needed and where to make the installation.

This is my Linux version:
2.6.18-164.6.1.el5xen GNU/Linux

Thank you,
Georgiana.
 
Old 06-13-2013, 01:35 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
you really do not want to try to build programs on a RHEL5/CentOS5 cluster with gcc 4.8

there is a reason rhel5 is using an older gcc (gcc-4.1.2 is in the base RHEL5/CentOS5 repo )
the kernel was built with it

there is also not many older "el5" programs that will build with gcc 4.8
At least not without a lot of hacking of the code .

ask the system admin to install the red hat software group "Development Tools" if not already installed
 
  


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
Help installing an old version of gcc animeresistance Slackware 3 11-26-2012 05:14 AM
[SOLVED] Which Damnsmalllinux version has the newest ndiswrapper and wpasupplicant version? floppy_stuttgart DamnSmallLinux 3 10-06-2011 01:40 PM
Which LXDE version of Linux has the newest version of Firefox and Open Office? coolguy2008 Linux - Newbie 6 09-19-2010 12:04 PM
Install or not install newest GCC version on Solaris 10. Zepiroth Solaris / OpenSolaris 6 05-26-2006 02:42 AM
installing another version of gcc kulmis Linux - Newbie 3 06-21-2005 01:24 PM

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

All times are GMT -5. The time now is 03:31 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
Open Source Consulting | Domain Registration