LinuxQuestions.org
Register a domain and help support LQ
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 03-09-2010, 10:49 AM   #16
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15

Yes, I got the executable from another developer in our company, and I was able to get the executable working on a 32-bit version of Ubuntu. Now I have installed 64-bit Ubuntu on a more powerful computer, and was trying to see if I could get the executable to work.

I don't know what multilib is. I never had to do anything with libraries to get the executable to work on the 32-bit machine.
 
Old 03-09-2010, 11:04 AM   #17
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 675

Rep: Reputation: 136Reputation: 136
Quote:
Originally Posted by sllinux View Post
Yes, I got the executable from another developer in our company, and I was able to get the executable working on a 32-bit version of Ubuntu. Now I have installed 64-bit Ubuntu on a more powerful computer, and was trying to see if I could get the executable to work.

I don't know what multilib is. I never had to do anything with libraries to get the executable to work on the 32-bit machine.
Multilib - it's when on the 64 bit machine alongside with 64 bit libraries installed 32 bit ones.

As I see it you have 2 options:
1. Install missed 32-bit libraries on your 64-bit systems
2. Use statifier (http://statifier.sf.net) or Ermine (http://magicermine.com) to make your executable self-contained.
Then you can copy it to your x86-64 system (or any other x86 system)
and it will run.
Statifier is GPL -licensed. but has trouble on system with memory randomization. (Ubuntu is among them

Ermine is commercial, but not suffer from memory randomization.
 
Old 03-09-2010, 11:19 AM   #18
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15
OK I will try option 1. So how do I install the multilib? Like this?

Code:
sudo apt-get install multilib
 
Old 03-09-2010, 11:53 AM   #19
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 69
Well, if you want to search for it try
Code:
apt-cache search
 
Old 03-09-2010, 07:46 PM   #20
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Quote:
I got the executable from another developer in our company,
If he wrote it, just ask for the src and re-compile
 
Old 03-10-2010, 11:53 AM   #21
sllinux
Member
 
Registered: Feb 2009
Posts: 31

Original Poster
Rep: Reputation: 15
OK I got the source and tried to recompile it, and got a "Can't determine endianness of this platform" error.

I'll just have to install multilib, but which one? Is it OK to install multiple versions of multilib?

Code:
test@olds:~/simulation$ apt-cache search multilib
g++-multilib - The GNU C++ compiler (multilib files)
gcc-multilib - The GNU C compiler (multilib files)
gfortran-multilib - The GNU Fortran 95 compiler (multilib files)
g++-4.1-multilib - The GNU C++ compiler (multilib files)
g++-4.2-multilib - The GNU C++ compiler (multilib files)
g++-4.3-multilib - The GNU C++ compiler (multilib files)
gcc-4.1-multilib - The GNU C compiler (multilib files)
gcc-4.2-multilib - The GNU C compiler (multilib files)
gcc-4.3-multilib - The GNU C compiler (multilib files)
gfortran-4.2-multilib - The GNU Fortran 95 compiler (multilib files)
gfortran-4.3-multilib - The GNU Fortran 95 compiler (multilib files)
gobjc++-4.2-multilib - The GNU Objective-C++ compiler (multilib files)
gobjc++-4.3-multilib - The GNU Objective-C++ compiler (multilib files)
gobjc++-multilib - The GNU Objective-C++ compiler (multilib files)
gobjc-4.2-multilib - The GNU Objective-C compiler (multilib files)
gobjc-4.3-multilib - The GNU Objective-C compiler (multilib files)
gobjc-multilib - The GNU Objective-C compiler (multilib files)
g++-4.4-multilib - The GNU C++ compiler (multilib files)
gcc-4.4-multilib - The GNU C compiler (multilib files)
gfortran-4.4-multilib - The GNU Fortran 95 compiler (multilib files)
gobjc++-4.4-multilib - The GNU Objective-C++ compiler (multilib files)
gobjc-4.4-multilib - The GNU Objective-C compiler (multilib files)
 
  


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
gcc will not execute, responds with 'no such file or directory' and 'no input file' nckeecho Ubuntu 9 07-24-2016 02:04 PM
Execute file Xzibit Linux - Newbie 3 12-21-2009 09:57 AM
File Permission - Read an execute only file e_x_p Linux - Security 1 12-16-2009 08:08 AM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-22-2007 12:43 AM
cannot execute binary file on a selfx file brucifer Linux - Software 4 03-21-2006 05:44 AM


All times are GMT -5. The time now is 07:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration