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 - 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, 09:49 AM   #16
sllinux
Member
 
Registered: Feb 2009
Posts: 45

Original Poster
Rep: Reputation: 16

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, 10:04 AM   #17
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
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, 10:19 AM   #18
sllinux
Member
 
Registered: Feb 2009
Posts: 45

Original Poster
Rep: Reputation: 16
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, 10:53 AM   #19
jamescondron
Member
 
Registered: Jul 2007
Location: Scunthorpe, UK
Distribution: Ubuntu 8.10; Gentoo; Debian Lenny
Posts: 961

Rep: Reputation: 70
Well, if you want to search for it try
Code:
apt-cache search
 
Old 03-09-2010, 06:46 PM   #20
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 10:53 AM   #21
sllinux
Member
 
Registered: Feb 2009
Posts: 45

Original Poster
Rep: Reputation: 16
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



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 01:04 PM
Execute file Xzibit Linux - Newbie 3 12-21-2009 08:57 AM
File Permission - Read an execute only file e_x_p Linux - Security 1 12-16-2009 07:08 AM
how to execute a script file? Have file/directory not found error sirius57 Linux - Software 2 11-21-2007 11:43 PM
cannot execute binary file on a selfx file brucifer Linux - Software 4 03-21-2006 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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