[ Mesaje noi · Membrii · Regulamentul forumului · Căutare · RSS ]
  • Pagina 1 din 1
  • 1
Forum » Tutoriale » Tutoriale Windows » Ubuntu apt-get install ia32 for 32-bit on 64-bit
Ubuntu apt-get install ia32 for 32-bit on 64-bit
CATA Date: Vineri, 2012-04-27, 8:58 PM | Message # 1
Awards: 4
Aveţi
Messages: 271
Reproofs:
Respect
[ 11 ]
Offline
To install 32-bit libraries on a 64-bit linux system
Install:

Code
  $ apt-get install ia32-libs


To install 32-bit libraries for development
Install:

Code
  $ apt-get install lib32gcc1 libc6-i386 lib32z1 lib32stdc++6
   $ apt-get install lib32asound2 lib32ncurses5 lib32gomp1 lib32z1-dev lib32bz2-dev
   $ apt-get install g++-multilib


You may need this too, or it may be a virtual package already provided:

Code
  $ apt-get install ia32-libs-gtk


You may need a symlink, which g++-multilib may set up for you automatically:

Code
  $ ln -s /usr/lib32/libstdc++.so.6 /usr/lib32/libstdc++.so


Update LD_LIBRARY_PATH

You may need to add the LD path, for example like this:

$ edit /etc/profile
... add these lines...
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/lib32:/usr/lib32
export LD_LIBRARY_PATH

To compile with gcc

To compile things with gcc, you need to add the flag -m32 like this:

Code
  gcc -m32 myfile.c





Forum » Tutoriale » Tutoriale Windows » Ubuntu apt-get install ia32 for 32-bit on 64-bit
  • Pagina 1 din 1
  • 1
Căutare: