Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > x86 64-bit Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

x86 64-bit Users
For the discussion of Ubuntu on the AMD 64 platform.

 
 
Thread Tools Display Modes
Old June 15th, 2007   #1
Cappy
Fresh Brewed Ubuntu
 
Cappy's Avatar
 
Join Date: Feb 2007
Location: In my chair
Beans: 1,485
getlibs: Automatically solves dependencies for 32-bit programs on 64-bit

On 64-bit systems it downloads and installs libraries needed for 32-bit programs and 64-bit programs.
On 32-bit systems it downloads and installs libraries needed for 32-bit programs.

Newest version: 2.06 released on [March 1st, 2008]

Thank you to the following bug reporters: marararam ViRMiN Cabal elanthis BogusJoe NullHead mooball
Thank you to the following Beta Testers: Kilz BogusJoe NullHead
Special thanks to: RavanH

To install or upgrade:

Download getlibs-all from
http://frozenfox.freehostia.com/cappy/


getlibs works on:
  • All Ubuntu and Debian systems
  • Debian or Ubuntu based distributions (best to use the package name)


Tip: To install a 32-bit debian package for a program (not a library!) use
Code:
sudo dpkg -i --force-all package_name.deb
Usage Examples:

getlibs on a program to download all missing libraries:
Code:
getlibs /usr/bin/skype
-----

Use getlibs to install a 32-bit library using the library name:
Code:
getlibs -l libogg.so.0 libSDL-1.2.so.0
-----

Use getlibs to install a 32-bit library using the package name:
Code:
getlibs -p libqt4-core libqt4-gui
-----

Install a 32-bit library file (.deb):
Code:
getlibs -i ~/i386_library_1.deb
-----

Download and install a 32-bit library file (.deb):
Code:
getlibs -w http://mirrors.kernel.org/ubuntu/pool/main/s/sdl-image1.2/libsdl-image1.2_1.2.5-3_i386.deb
-----

Other options:

--apt-file : Uses apt-file to find the packagenames for libraries. The default uses packages.ubuntu.com. This is especially useful for non-ubuntu users.

--build : converts a 32-bit package to a 64-bit package and installs it. This will only install libraries from a 32-bit package into the correct place! This will not install any binaries from that package! This is very beta.

--savebuild : use with --build. Saves new 64-bit package to /home/$USER

--mirror or -m : Use the specified mirror to download from if one is not specified for package

--verbose : Extra output

--ldconfig : Runs ldconfig on directories where new libraries are installed

-64 : Will let apt-get install 64-bit packages for a 64-bit system

-32 : Left only for compatibility with getlibs v1. 32-bit library installation is the default for all systems.

--distro : can set as either Ubuntu or Debian. Ubuntu installs to /usr/lib32 and/or /lib32. Debian installs to /emul/ia32-linux/

--release : can set as hardy gutsy feisty edgy or dapper. Determines what web interface release is used in search.
__________________
Currently favorite songs:
Miss Hyde, This Song Is About Monsters, Masagin, I Will Try to Blow it Out, La Resistance
Visit www.cherrypeel.com for more free indie music =)

Last edited by Cappy; May 20th, 2009 at 03:48 PM..
Cappy is offline  
Old June 15th, 2007   #2
fabertawe
Way Too Much Ubuntu
 
fabertawe's Avatar
 
Join Date: Jun 2006
Location: Wales
Beans: 299
Ubuntu 9.10 Karmic Koala
Send a message via Yahoo to fabertawe
Re: getlibs: Automatically solves dependencies for binaries

Quote:
Originally Posted by Cappy View Post
What do you guys think? Is this script helpful enough I should improve it?
Hi Cappy,

sounds like a great idea and something that could be very useful for installing 32bit apps. I just wish I had something to try it out with! I'm sure you'll get some good feedback for this

Paul
__________________
Ubuntu Guide | Appnr | Linux Commands | Lowfat Linux | Bash A-Z

AMD X2 5600+, Asus M2N-E SLI, 2GB PC6400, MSI 8600GT OC, Ubuntu 9.10 x86_64
Asus EeePC 4GB, 2GB RAM, Ubuntu 8.04
fabertawe is offline  
Old June 15th, 2007   #3
Kilz
64bit Ubuntu Power
 
Kilz's Avatar
 
Join Date: Mar 2006
Location: cyberspace
Beans: 6,153
Ubuntu 9.10 Karmic Koala
Re: getlibs: Automatically solves dependencies for binaries

A very interesting project. Sounds like something that would make multiarch a reality before the Ubuntu developers do it. For i386 binaries, it installs the 32bit libraries in the correct place? This might stop some new users fubaring their installs by forcing libraries.
__________________
I trust Microsoft as far as I could comfortably spit a dead rat

Theres no place like home, since I keep coming back, this must be it
Kilz is offline  
Old June 15th, 2007   #4
©TriMoon®
5 Cups of Ubuntu
 
©TriMoon®'s Avatar
 
Join Date: May 2007
Location: Kayseri, Turkey
Beans: 36
Kubuntu 7.10 Gutsy Gibbon
Send a message via Yahoo to ©TriMoon® Send a message via Skype™ to ©TriMoon®
Re: getlibs: Automatically solves dependencies for binaries

Quote:
Originally Posted by Cappy View Post
What do you guys think? Is this script helpful enough that I should improve it?
Always handy to have support scripts to ease things.
Some tips for change:
1) Dont demand install as root.
2) Rename the script to have .sh extension, only real binaries should have names without extensions.
3) Use sudo and the like to visually ask the user for administrative rights when really needed.
__________________
Well thats all for now, 3M
ASUS M2N<GREEN> Mainboard, AMD Athlon(tm) 64 X2 Dual Core Processor 4200+, Giga-byte Radeon 1650 Pro (ATI RV530LE [Radeon X1600]), 2GB RAM, 1x160GB IDE + 1x160GB SATA +1x500GB USB, SyncMaster 226BW (22" DFP)
©TriMoon® is offline  
Old June 15th, 2007   #5
gbesso
Just Give Me the Beans!
 
Join Date: Oct 2006
Location: Israel
Beans: 64
Kubuntu 7.10 Gutsy Gibbon
Re: getlibs: Automatically solves dependencies for binaries

This is great, Thank you so much!
gbesso is offline  
Old June 15th, 2007   #6
Cappy
Fresh Brewed Ubuntu
 
Cappy's Avatar
 
Join Date: Feb 2007
Location: In my chair
Beans: 1,485
Re: getlibs: Automatically solves dependencies for binaries

Quote:
Originally Posted by Kilz View Post
For i386 binaries, it installs the 32bit libraries in the correct place?
Yes, it does! I commented my code if you would like to take a look.
__________________
Currently favorite songs:
Miss Hyde, This Song Is About Monsters, Masagin, I Will Try to Blow it Out, La Resistance
Visit www.cherrypeel.com for more free indie music =)
Cappy is offline  
Old June 21st, 2007   #7
Cappy
Fresh Brewed Ubuntu
 
Cappy's Avatar
 
Join Date: Feb 2007
Location: In my chair
Beans: 1,485
Re: getlibs: Automatically solves dependencies for binaries

I've updated this to version 1.01
New features:
*Built-in support for handling multiple missing libraries
*Cleaned code up, cleaned regex's up
*Added new feature: install libraries using the name
Example:
Code:
$ getlibs -64 libogg.so.0 libSDL-1.2.so.0
Matched library libogg.so.0 to libogg0
Matched library libSDL-1.2.so.0 to libsdl1.2debian-all
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libogg0 is already the newest version.
The following NEW packages will be installed:
  libsdl1.2debian-all
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 213kB of archives.
After unpacking 20.5kB of additional disk space will be used.
Do you want to continue [Y/n]?
This new feature supports non arch downloading, just like the binary (original/main) function.
__________________
Currently favorite songs:
Miss Hyde, This Song Is About Monsters, Masagin, I Will Try to Blow it Out, La Resistance
Visit www.cherrypeel.com for more free indie music =)

Last edited by Cappy; June 21st, 2007 at 06:41 PM..
Cappy is offline  
Old June 21st, 2007   #8
jusmurph
Way Too Much Ubuntu
 
jusmurph's Avatar
 
Join Date: May 2007
Beans: 315
Ubuntu 7.10 Gutsy Gibbon
Re: getlibs: Automatically solves dependencies for binaries

very nice project!
__________________
Ubuntu Guide: GutsySound GuideTake CommandFree Ubuntu StickersLearn to ProgramUndelete ext3
Ubuntu 7.10 Gutsy 64AMD - Ubuntu User Id: 15132 ■ Last FM
jusmurph is offline  
Old June 23rd, 2007   #9
RavanH
Ubuntu Extra Shot
 
RavanH's Avatar
 
Join Date: Apr 2007
Beans: 358
Ubuntu 9.10 Karmic Koala
Send a message via AIM to RavanH Send a message via MSN to RavanH Send a message via Skype™ to RavanH
Re: getlibs: Automatically solves dependencies for binaries

Thanks, Cappy, for this GREAT script!

I wanted to test the latest Skype and it was not available through Simple64 yet. Searching the forums, I stumbled upon your promising post. And it worked!

FYI:
After installing getlibs (following your instructions) and downloading the Skype 1.4.0.74 deb package to my home directory, I installed the latest Skype (32bit architecture) on my AMD64 Ubuntu Feisty by opening a terminal emulation screen and entering
Code:
sudo dpkg -i --force-architecture skype*.deb
Then I entered the command
Code:
skype
which returned the error
Code:
skype: error while loading shared libraries: libQtDBus.so.4: cannot open shared object file: No such file or directory
Then I entered
Code:
getlibs /usr/bin/skype
which returned
Code:
Matched library libQtCore.so.4 to /feisty/libs/libqt4-core
Matched library libQtDBus.so.4 to /feisty/libs/libqt4-core
Matched library libQtGui.so.4 to /feisty/libs/libqt4-gui
Matched library libQtNetwork.so.4 to /feisty/libs/libqt4-core
Matched library libsigc-2.0.so.0 to /feisty/libs/libsigc++-2.0-0c2a
Libraries have been installed.
Then I tried again the command
Code:
skype
which this time returned
Code:
skype: error while loading shared libraries: libdbus-1.so.3: cannot open shared object file: No such file or directory
So again, I ran
Code:
getlibs /usr/bin/skype
which this time returned
Code:
Matched library libdbus-1.so.3 to /feisty/libs/libdbus-1-3
Libraries have been installed.
And for sure, this time the command
Code:
skype
resulted in Skype starting up!


So again: a big THANKS for this great script. IMHO it should be integrated in Ubuntu's 64bit version ASAP!!!

--ravan
RavanH is online now  
Old June 24th, 2007   #10
blindarbalest
First Cup of Ubuntu
 
Join Date: Jun 2007
Beans: 1
Re: getlibs: Automatically solves dependencies for binaries

Thank you very much! I had already forked up my libraries trying to get the 32 bit dependencies for Skype installed -- fortunately apt-get installed what I needed to get Ubuntu working again. getlibs worked like a charm, and I'm now chatting happily.
blindarbalest is offline  
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:50 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry