LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-24-2011, 10:15 AM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
in multilib, can the same library be installed under each architecture?


A certain program I use requires pango and gtkglext in 32 bit. I had already installed both of these in 64, and just now I downloaded .rpms for them in 32 bit and used rpm2tgz to turn them into .tgz files. The application i needed them for now works fine, but I'm wondering if installing precompiled packages like I did may mess with the 64 bit installs I already did, or if they can both be installed at the same time without any issues. Thanks
 
Old 02-24-2011, 10:53 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Yes, but you already have the means to create compat32.tgz for pango and many other libraries. Read this article by Alien Bob http://alien.slackbook.org/dokuwiki/...kware:multilib

samac
 
Old 02-24-2011, 03:04 PM   #3
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
Never use packages from another distro unless you know exactly what you are doing... that is, you used ldd to check the versions of all dependencies that the binary links against and that you actually meet those dependencies. However, even that is risky for stability and or security.

Use Samac's suggestion. That is, convert the slackware32 pango package to be installed under 64bit slackware. The other option is to also recompile it on your system.

BTW, I've had issues with compiling other software when the /etc/ld.so.cache lists the 32bit package first and I'm trying to compile a 64bit package and vice verse. I think I've fixed most of these issues for my self by listing the paths in the order of priority in /etc/ld.so.conf and running ldconfig. However QT programs continue to be a pain and often need one or more environment variables set during compile.
 
Old 02-25-2011, 06:23 AM   #4
Ramurd
Member
 
Registered: Mar 2009
Location: Rotterdam, the Netherlands
Distribution: Slackwarelinux
Posts: 703

Rep: Reputation: 111Reputation: 111
As stated, you better get the 32bit versions of those packages, rather than rpm2tgz them. That should be a very very very last resort, and since those packages are available for 64 bit, one can rightfully assume they're available on 32 bit as well.

For libraries, if they adhere to the FHS: 64bit libraries are installed to the libdir with a suffix 64. e.g. /lib64 and /usr/lib64; 32bit libraries are to be installed to such directories without the "64" suffix.

Be sure you do NOT upgrade the existing package; for example you have libpango-1.2.3-x86_64-1alien.txz installed, you do NOT do upgradepkg libpango-1.2.3-i486-1alien.txz, but you do installpkg libpango-1.2.3.-1alien.txz; In this way you have both libraries existing next to each other.

Prior to installation, you can check if files would be overwritten:

Code:
PKGSUFFIX=txz # it's either tgz or txz, fill in what you have.
PKG64=gtkglext-1.2.3-x86_64-1tag.${PKGSUFFIX} # fill in the 64bit package name (without the .t?z extension)
PKG32=gtlglext-1.2.3-i486-1tag.${PKGSUFFIX} # fill in the 32bit package name (without the .t?z extension)

case ${PKGSUFFIX} in
	txz) 
		TAR_PARAM=J
		;;
	tgz)
		TAR_PARAM=z
		;;
	*)
		echo "PKGSUFFIX must be either tgz or txz"
		;;
esac

tar ${TAR_PARAM}tf ${PKG64} | while read fn
do
	tar ${TAR_PARAM}tf ${PKG32} | grep ${fn}
done
Any output of this will be a file that would be overwritten; Any binary executable or library is a bad idea (tm) here. I would not worry overmuch about documentation, as that should be more or less the same. If you fear that there may be some issues with installing the 32bit version over the 64bit version, you probably want to extract the 32bit package and move the files about so that they will not overwrite existing files and run makepkg again to make a nice new package. If that's too advanced, you come back here with your questions ;-)
 
  


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
what is 'architecture' in 'binary for an architecture'?multiple architecture support? wagaboy Linux - Newbie 2 07-10-2010 11:18 AM
Compile SDL app in Slackware64 w Eric's Multilib installed lightkuragari Slackware 4 07-06-2010 08:54 AM
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
I bought a used Xeon server and installed Fedora Linux for intel x86 architecture Virtual Circuit Linux - Hardware 1 02-16-2010 07:56 PM
install from source - unable to find the libcurl library - but library is installed pulper Linux - Newbie 2 02-23-2009 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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