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 - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2007, 04:30 PM   #1
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Rep: Reputation: 30
64 bit compile/install


How do you compile/install on a 64 bit system? On Fedora Core 6 for x86_64, the following has seemed to work ok for me, in a couple of cases:
Code:
rm libtool
./configure \
  --prefix=/usr \
  --libdir=/usr/lib64
make
su
make install
The point to removing libtool is to get configure to generate a new one, since the one that came with the source distributions I was dealing with looked in /usr/lib (where 32-bit libraries are) sometimes instead of /usr/lib64 (where 64-bit libraries are).

Is there a HOWTO around I should be looking at? I'm just feeling my way here.
 
Old 06-20-2007, 09:01 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You can find build instructions for many packages here. There are 32-bit and 64-bit build instructions. There are about 700 packages represented.

There is essentially no difference in the commands used to build 32- and 64-bit pacakges. The CFLAGS and/or CXXFLAGS will be different; you need to pass -m32 for 32-bit and -m64 for 64-bit. The PKG_CONFIG_PATH environment variable should be set to use the location of the 32-bit or 64-bit metadata files (*.pc files). If you don't, pkgconfig will look in */lib/pkgconfig and find 32-bit libraries. These will obviously not work for a 64-bit build.

For example, the configure script might be executed as follows for a 32- or 64-bit build respectively:
Code:
-- for the 32-bit build --

CC="gcc -m32 -O2 -pipe -march=athlon64 -mtune=athlon64" \
PKG_CONFIG_PATH="/usr/lib/pkgconfig:/opt/gnome/lib" \
./configure --prefix=/usr

-- or for the 64-bit build --

CC="gcc -m64 -O2 -pipe -march=athlon64 -mtune=athlon64" \
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/opt/gnome/lib64" \
./configure --prefix=/usr --libdir=/usr/lib64
 
Old 06-20-2007, 11:10 AM   #3
GregLee
Member
 
Registered: Feb 2004
Location: Waimanalo, HI
Distribution: Slackware 10, Fedora 6
Posts: 308

Original Poster
Rep: Reputation: 30
Thanks for the very useful suggestions. I had more or less given up on the CBLFS site, since it seems to assume I'd build my system up in their rather idiosyncratic way.
 
Old 06-20-2007, 12:22 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by GregLee
Thanks for the very useful suggestions.
No problem.
Quote:
Originally Posted by GregLee
I had more or less given up on the CBLFS site, since it seems to assume I'd build my system up in their rather idiosyncratic way.
I guess if standards compliant, SysVint system is idiosyncratic...obviously the CBLFS instructions assume you are building on a CLFS base. The multilib-wrapper program used in CLFS is somewhat unique, but I've successfully used the instructions (modified if needed) on Gentoo, *buntu, and Slamd64 boxes.
 
  


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
Howto install 32-bit libraries on 64-bit Linux using yum shawn_t Linux - Server 16 07-13-2012 02:46 AM
How to install 32-bit software in 64-bit system jshih Linux - Kernel 5 04-14-2007 12:26 PM
LXer: Howto install Flash, Java, Real Player 32 bit plugins under 64 bit Firefox LXer Syndicated Linux News 0 03-16-2007 11:31 PM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM
Which version of 32 bit redhat will install on IBM xSeries 366 (64 bit)? Hello123 Linux - Hardware 2 09-14-2005 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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