www.centos.org Forum Index CentOS 5 - General Support /lib/* vs /lib64/*
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: /lib/* vs /lib64/* | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6361
|
Compile it for 32 bit not 64.
|
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/30 11:14
|
|||
|
Re: /lib/* vs /lib64/* | #3 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/12/11
From Finland
Posts: 1329
|
Do:
Quote: file <my executable> Do you by any chance see "ELF 64-bit LSB executable, ..." "ELF 32-bit LSB executable, ..." You are compiling on a 64-bit system, where the default is to complie 64-bit binaries, which link to 64-bit libraries. The old binary has been compiled as 32-bit and naturally links to 32-bit libraries. On a 64-bit CentOS installation the 64-bit libraries are in /lib64 and the 32-bit libraries are in /lib. The 32-bit libraries are needed only for executing 32-bit binaries. The libraries are not really different in functionality, but the 64-bit are "native" and the 32-bit kind of wrappers that let a 32-bit binary to execute in 64-bit system. If you really want, you probably can pass "-m32" flag to the compiler but in my opinion you shouldn't, unless the same binary has to be run in a 32-bit OS. |
||
Posted on: 2012/3/30 11:21
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
dabd





You cannot start a new topic.
You can view topic.