LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2009, 05:11 PM   #1
jlebar
LQ Newbie
 
Registered: Jan 2009
Posts: 11

Rep: Reputation: 0
Installing ia32-libs on 64-bit Jaunty as a non-superuser


I'm a regular user on a server running Jaunty x86_64. I need to compile some 32-bit binaries, but the server is not configured to support this. When I try to compile an empty program with -m32, I get the following output:

Code:
$ gcc -m32 test.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
Since I'm not a superuser, I can't apt-get the necessary packages to make this work. I've asked the server's maintainers to install them, but in the meantime, I'd like to try and install the missing libraries into my home directory.

I got as far as downloading and extracting ia32-libs_2.7ubuntu6.1.tar.gz, but the fetch-and-build script fails because it can't find grep-dctrl. Anyway, that looks like maybe it was the wrong approach. At least, I don't see a configure script to pass a prefix to, and that's about all I know how to do when building from source.

I also tried downloading and extracting the relevant Debian packages into my home directory. I actually got a copy of libgcc from the gcc-4.3-multilib package. But even when I add the directory that file to my LD_LIBRARY_PATH, I get the same error message I was getting before from gcc; my new copy of libgcc isn't listed anywhere.

I'm running out of ideas here. Is there a right way to do this?

Thanks for your help,
-Justin
 
Old 10-09-2009, 12:07 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by jlebar View Post
I'm a regular user on a server running Jaunty x86_64. I need to compile some 32-bit binaries, but the server is not configured to support this. When I try to compile an empty program with -m32, I get the following output:

Code:
$ gcc -m32 test.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
Since I'm not a superuser, I can't apt-get the necessary packages to make this work. I've asked the server's maintainers to install them, but in the meantime, I'd like to try and install the missing libraries into my home directory.

I got as far as downloading and extracting ia32-libs_2.7ubuntu6.1.tar.gz, but the fetch-and-build script fails because it can't find grep-dctrl. Anyway, that looks like maybe it was the wrong approach. At least, I don't see a configure script to pass a prefix to, and that's about all I know how to do when building from source.

I also tried downloading and extracting the relevant Debian packages into my home directory. I actually got a copy of libgcc from the gcc-4.3-multilib package. But even when I add the directory that file to my LD_LIBRARY_PATH, I get the same error message I was getting before from gcc; my new copy of libgcc isn't listed anywhere.

I'm running out of ideas here. Is there a right way to do this?

Thanks for your help,
-Justin
Wait for server''s admin to do what you asked him.

Or on your box (may be in VM) install some linux distro and whatever packages your like
 
Old 10-09-2009, 02:54 AM   #3
jlebar
LQ Newbie
 
Registered: Jan 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Valery Reznic View Post
Wait for server''s admin to do what you asked

Or on your box (may be in VM) install some linux distro and whatever packages your like
I'm waiting as patiently as I can, and I in fact already have a Linux VM set up on my local box. But I was hoping I could do this myself on the server, given enough elbow grease. The server is an 8-core 32GB machine, and my little laptop just doesn't keep up.
 
  


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
AR982x not working less reliably in 64 bit Jaunty as opposed to 32 bit Jaunty devinmcelheran Ubuntu 4 10-02-2009 10:16 AM
amd64 ia32-libs broken - "No such file or directory" kuri0s Debian 1 08-21-2008 01:41 PM
mixed system, etch && testing || unstable: building ia32-libs-gtk HowDoIProgramIt Debian 2 08-15-2007 10:18 AM
32/64 bit libs - FC6/gcc 4.1.1 -m32 picking up 64 bit library marier Fedora 0 04-24-2007 12:57 PM
openoffice on amd64 with ia32-libs? erpe Debian 12 10-05-2006 07:35 PM

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

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