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.
|
|
11-13-2008, 06:59 AM
|
#1
|
LQ Newbie
Registered: May 2007
Location: Sweden
Posts: 4
Rep:
|
How to find out what gcc version to use, without internet connection
Hello!
Im working on a x86_64 GNU/linux machine with kernel 2.6.18-53.1.13.el5.
I need to install gcc, which should be a trivial matter, the problem is that the machine have no internet connection (and is not allowed to have one either due to sensetive information on it)
There is support for .rpm files which I have tried to use, but the versions of gcc I have tried usually have some glibc dependencies that I cannot install. The problem is that the system already have glibc installed, but the wrong version (2.5-18.el5_1.1), and I can not update it since there are other packages that requires this particular version of gcc..
So I would like to know if there is some command that I can use offline to find out what version of gcc I should look for, or if there is some other way to find out what is needed.
Regards
Tomas
|
|
|
11-13-2008, 09:33 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,420
|
Quote:
Originally Posted by thjukkas
Hello!
Im working on a x86_64 GNU/linux machine with kernel 2.6.18-53.1.13.el5.
I need to install gcc, which should be a trivial matter, the problem is that the machine have no internet connection (and is not allowed to have one either due to sensetive information on it)
There is support for .rpm files which I have tried to use, but the versions of gcc I have tried usually have some glibc dependencies that I cannot install. The problem is that the system already have glibc installed, but the wrong version (2.5-18.el5_1.1), and I can not update it since there are other packages that requires this particular version of gcc..
So I would like to know if there is some command that I can use offline to find out what version of gcc I should look for, or if there is some other way to find out what is needed.
Regards
Tomas
|
There are lots of dependencies for GCC, and it's not often it's not installed at build-time. You could look up the package from a repository, and check the dependencies, but that would require you to get online to do it. Your best bet is to take the machine somewhere with a connection, and spend 15 minutes doing it online. Far fewer headaches.
|
|
|
11-13-2008, 09:58 AM
|
#3
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Example gcc for EL5 (the gcc version is 4.1.2)
http://rpm.pbone.net/index.php3?stat...el5.x86_64.rpm
And find more examples. if necessary, at http://rpm.pbone.net/
> > Search > "Advanced Search" .. keyword = gcc-4
|
|
|
11-13-2008, 10:53 AM
|
#4
|
Member
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218
Rep:
|
Just grab the source:
./configure
make
make install
|
|
|
11-18-2008, 07:47 AM
|
#5
|
LQ Newbie
Registered: May 2007
Location: Sweden
Posts: 4
Original Poster
Rep:
|
Thx guys, I used the rpm.pbone.net site and downloaded the correct rpm's from there, and when dependencies showed up I used the site for those as well.. and repeated until I git it all, and now it works.
thx for the help
|
|
|
11-18-2008, 10:55 AM
|
#6
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
Quote:
Originally Posted by kromberg
Just grab the source:
./configure
make
make install
|
And without gcc already installed you would get something like...
configure: error no gcc found.
|
|
|
11-19-2008, 03:34 AM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
kromberg and kevinalm : And by the way, this is not the
method recomended to build gcc.
Gcc is designed to compile itself ! (bootstrap)
Example
http://www.linuxfromscratch.org/lfs/...gcc-pass1.html
|
|
|
11-19-2008, 11:54 AM
|
#8
|
Member
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288
Rep:
|
Quote:
Originally Posted by knudfl
|
You need a prexisting gcc and glibc (of acceptable version) to start the bootstrap process. I know, I've done it several times. Notice the distros listed under my username.
It's also recommended to build outside of the source tree in a dedicated build directory.
The general process in a gcc make bootstrap build is the host gcc compiles the new gcc, 1st round. New gcc 1st round builds new gcc 2nd round. New gcc 2nd round builds new gcc 3rd round, and then 2nd and 3rd round are compared and if they are sufficiently similar, 3rd round is installed.
Last edited by kevinalm; 11-19-2008 at 12:02 PM.
|
|
|
All times are GMT -5. The time now is 01:07 PM.
|
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
|
|