To use lib or lib32?


 
Thread Tools Search this Thread
Top Forums Programming To use lib or lib32?
# 1  
Old 04-11-2008
To use lib or lib32?

A good day to you, dear experts,

I am a newbie, I noticed in binutils or gcc there are lib and lib32 and lib64, to take binutils as an example,
My system is sgi IRIX6.5, which is suggested to use "n32" flag during the compiling and linking, is that mean that I need to use lib32?
Q1. which one should I use, lib or lib32 or both?
Q2. If it is lib32 that I have to link to, then how can I set it?
Q3. Do I need to do something after installing binutils, I mean what shall I do after "./configure --prefix=***; make; make install;", do I need to copy some special libraries for binutils and gcc?

Any help much appreciated!

Daniel
# 2  
Old 04-11-2008
i'm not a programmer. never was! buuuuuuuut
whenever i compile from source (being an already made pile of code) i usually see what time of library files they want. 32 or 64. take for example mysql. you can compile both 32bit or 64bit versions. it depends on your system architecture obviously and what compilers you have installed. therefore, when i go to compile, i make sure my ld_library_path is pointing to the 64 or 32bit library files (depending on what i want to compile).

and as for ./configure --prefix=*** it is up to you. if you feel you want libraries placed in prefix/lib and executables in prefix/bin then do that. i believe /usr/local is the default prefix.
# 3  
Old 04-11-2008
Probably try lib first. On my 64-bit system, lib is a symlink to lib64 (or was it the other way around) and lib32 is for non-native 32-bit stuff (like proprietary drivers and codecs which only exist in i386 binary form and can't be recompiled for 64-bit).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can't CD to lib ??? why

Hi, I have root access and user name called prod. but it doesn't matter which user I log in as. But I can't CD to the directory. Can you advise. dr-xr-xr-x 1 root root 1 Sep 12 15:40 lib $id uid=4902(prod) gid=50(develop) $cd lib -bash: cd: lib: Permission... (7 Replies)
Discussion started by: samnyc
7 Replies

2. AIX

Lib files

Hi All, I am trying to install IIS Suite application on AIX box. It gave an error as below Ensure the following libraries do not exist: /usr/lib/libicuio.a, /usr/lib/libicuuc.a, /usr/lib/libicui18n.a. These libraries may cause uvsh to not work properly. I manually removed these files by... (1 Reply)
Discussion started by: tostay2003
1 Replies

3. AIX

LIB Version

Hi...please help with command to find the library version on AIX server ---------- Post updated at 12:50 PM ---------- Previous update was at 12:31 PM ---------- AIX version is 6.1.Please (4 Replies)
Discussion started by: Sanal
4 Replies

4. Red Hat

Lib missing

Hai dear, I am installing some application on linux RedHat 9 It gives me following discrepancies lib.so.6 (GLIBC_2.3.4) needed lib.so.6 (GLIBC_2.4) needed libpthread.so.0(GLIBC_2.3.3) needed rtld(GNU_HASH) needed i tried to search a lot on internet to find relative rpm for these libs... (3 Replies)
Discussion started by: Danish Shakil
3 Replies

5. Red Hat

ls: /lib/libattr.so.1: no version information available (required by /lib/libacl.so.1)

Hello, I'm experimenting a problem on my rh server. Red Hat Enterprise Linux AS release 3 (Taroon Update 8) 2.4.21-47.ELsmp #1 SMP i686 i686 i386 GNU/Linux It started with a segmentation fault on #id root To resolve it, I've installed coreutils-4.5.3-28.4.i386.rpm But, I... (6 Replies)
Discussion started by: gogol_bordello
6 Replies

6. Programming

Question on using gd lib with c++

Hello, I'm trying to use gd with c++ in linux. Previously, I had already succeed using the gd lib in windows through gdwin32. Now I would like to run the program in linux but i'm not sure how to do it. I'm currently try running it in cygwin, but I couldn't compiled it. Any suggestion? (3 Replies)
Discussion started by: shahrulb
3 Replies

7. UNIX for Advanced & Expert Users

a question about debug using gdb(/lib32/libc.so.6: No such file or directory)

Hi all, (gdb) target remote 192.168.185.196:1389 Remote debugging using 192.168.185.196:1389 warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. 0x2fbd0800 in ?? () (gdb) l 1 ... (0 Replies)
Discussion started by: yanglei_fage
0 Replies

8. Programming

2D Graphics Lib

Hi, I am on Fedora9 and need to do some simple 2D graphics (for game development). I am looking for an ideal 2D library/package to be used with GCC. I have come accross GRX, libmxi and some OpenGL (The 3D), but none of which seems to be ok. I could not find any tutorial or support material... (1 Reply)
Discussion started by: nasersh
1 Replies

9. UNIX for Advanced & Expert Users

how install lib...

i download a boost library from net on/by window machine...i am using telnet connection.then how can i untar/compile/install boost library to /usr/local/lib...on my unix machine. (1 Reply)
Discussion started by: prangin
1 Replies

10. Linux

ct-lib on Lynix

Hi Friends ! Where can I get free ct-lib for Lynix ?? My problem is something like this-- Sybase server is running on a Solaris machine. Now I trying to access the Sybase from a Lynix machine for which i need ct-lib. I tried by downloading some free ct-libs for Lynix on the net, but they... (2 Replies)
Discussion started by: mrgubbala
2 Replies
Login or Register to Ask a Question