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

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

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

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

 
Thread Tools Display Modes
Old May 9th, 2007   #1
reets
5 Cups of Ubuntu
 
Join Date: Jul 2006
Location: NB, Canada
Beans: 41
Ubuntu Jaunty Jackalope (testing)
Send a message via MSN to reets Send a message via Skype™ to reets
downloading libcups.so.2

Anyone know the apt-get command to force installation of the 32-bit libraries for CUPS? (file it wants is libcups.so.2)

Trying to get REALbasic 2007 going but it will only use the 32-bit libs.
reets is offline   Reply With Quote
Old May 9th, 2007   #2
Kilz
64bit Ubuntu Power
 
Kilz's Avatar
 
Join Date: Mar 2006
Location: cyberspace
Beans: 6,154
Ubuntu 9.10 Karmic Koala
Re: downloading libcups.so.2

Quote:
Originally Posted by reets View Post
Anyone know the apt-get command to force installation of the 32-bit libraries for CUPS? (file it wants is libcups.so.2)

Trying to get REALbasic 2007 going but it will only use the 32-bit libs.
I recommend not forcing any libraries. The reason is that when you force in a package it places files according to its internal file tree. What dose this mean?
In a i386 package you have 32bit libraries in /usr/lib.
In a amd64 package you have 64bit libraries in /usr/lib and 32bit libraries in /usr/lib32
If you --force-archetecure the package the 32bit libraries may overwrite 64bit libraries and fubar your install.
What you can do is use
Code:
dpkg -x TheFilesName.deb
to extract the contents of a i386 package. It will extract its internal file tree to that folder the deb is in. Then copy the files in /usr/lib in that tree to /usr/lib32 in your file system.
__________________
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   Reply With Quote
Old January 16th, 2008   #3
Astrodan
5 Cups of Ubuntu
 
Join Date: Feb 2007
Location: Northwest Pennsylvania
Beans: 20
Ubuntu 8.04 Hardy Heron
Re: downloading libcups.so.2

Quote:
Originally Posted by Kilz View Post
I recommend not forcing any libraries. The reason is that when you force in a package it places files according to its internal file tree. What dose this mean?
In a i386 package you have 32bit libraries in /usr/lib.
In a amd64 package you have 64bit libraries in /usr/lib and 32bit libraries in /usr/lib32
If you --force-archetecure the package the 32bit libraries may overwrite 64bit libraries and fubar your install.
What you can do is use
Code:
dpkg -x TheFilesName.deb
to extract the contents of a i386 package. It will extract its internal file tree to that folder the deb is in. Then copy the files in /usr/lib in that tree to /usr/lib32 in your file system.

Kilz, you helped me with many of your posts. And, I stand firmly behind your recommendations not to force things. As a noobie, I squirrelled a few installs with some of that, and, I know the frustration which you have warned about.

This little tidbit here, installed my REALbasic download after it had reported wrong architecture on my AMD64. It works now like a charm.

Special thanks. Please, please, keep helping like your are.

Dan
Astrodan is offline   Reply With Quote
Old May 10th, 2007   #4
ectospasm
A Carafe of Ubuntu
 
ectospasm's Avatar
 
Join Date: Jan 2006
Beans: 91
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to ectospasm Send a message via Yahoo to ectospasm
Re: downloading libcups.so.2

Yes, but where are we supposed to get a .deb file for the 32bit libcups.so.2? Can you download it through aptitude or something?
ectospasm is offline   Reply With Quote
Old May 10th, 2007   #5
gbesso
Just Give Me the Beans!
 
Join Date: Oct 2006
Location: Israel
Beans: 64
Kubuntu 7.10 Gutsy Gibbon
Re: downloading libcups.so.2

http://packages.ubuntulinux.org

libcupsys for feisty:
http://packages.ubuntulinux.org/feisty/libs/libcupsys2
You need the i386 version, follow Kilz's instructions.

If you need other packages, or the same package for an older ubuntu release use the url at the top of my post.

Last edited by gbesso; May 10th, 2007 at 08:15 AM..
gbesso is offline   Reply With Quote
Old May 10th, 2007   #6
ectospasm
A Carafe of Ubuntu
 
ectospasm's Avatar
 
Join Date: Jan 2006
Beans: 91
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to ectospasm Send a message via Yahoo to ectospasm
Re: downloading libcups.so.2

Got past that shared library problem, thanks for the help.

But I hit a new one, and I can't find on packages.ubuntulinux.org the i386 version of libcupsimage.so.2 file. libcupsimage-dev contains a symbolic link to it, but does not contain the binary libcupsimage.so.2 file.

I feel very close now.

EDIT: Never mind, I think I found it.

Last edited by ectospasm; May 10th, 2007 at 07:23 AM..
ectospasm is offline   Reply With Quote
Old May 13th, 2007   #7
reets
5 Cups of Ubuntu
 
Join Date: Jul 2006
Location: NB, Canada
Beans: 41
Ubuntu Jaunty Jackalope (testing)
Send a message via MSN to reets Send a message via Skype™ to reets
Re: downloading libcups.so.2

Awesome information! Had to download around 6 files using this method but it was super easy and now it's running perfectly Thanx a TON!!
reets is offline   Reply With Quote
Old June 15th, 2007   #8
ecs_pf5
Way Too Much Ubuntu
 
Join Date: Mar 2007
Location: UK
Beans: 225
Kubuntu 7.10 Gutsy Gibbon
Re: downloading libcups.so.2

Apologies but can someone simplify the procedure for a newbie?

hang on. think I'm getting it

[edit] just noting down here, the libraries being asked for as I go through it

1. i386 libcupsys > extract > get libcups.so.2 > place in /usr/lib32 ...great ok, next one = libgnutls.so.13
2. same procedure for libgnutls.so.13 (2 files - one a link to the other) ..great, next one the installer asked for = libtasn1.so.3
3. libtasn1.so.3 taken by the installer ok (a real file and a link).. next one asked for libgcrypt.so.11
4. great, took it, (2 files again).. next one libgpg-error.so.0

that's it, seemed to install okay after that. here's the output from the terminal

Code:
(process:12655): Gdk-WARNING **: locale not supported by C library

(REALbasic2007:12655): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
[RB] Unable to load plugin RBQT.rbx
[RB] Unable to load plugin RBGameInput.rbx

(REALbasic2007:12655): Gtk-WARNING **: Error loading theme icon for stock: Unable to load image-loading module: /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so: /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so: cannot open shared object file: No such file or directory


seems
to be running ok..

Yeahhh groovy... Hello World!

__________________
MS-6534v1 no-name mobo,
Vanta 8Mb AGP video, IDE 10Gb maxtor sda, Intel P2 1.9GHz FSB 100MHz,
512 Mb PC-133 RAM,
Kubuntu 8.10 32-bit (desktop CD)

Last edited by ecs_pf5; June 15th, 2007 at 05:32 PM..
ecs_pf5 is offline   Reply With Quote
Old June 15th, 2007   #9
Kilz
64bit Ubuntu Power
 
Kilz's Avatar
 
Join Date: Mar 2006
Location: cyberspace
Beans: 6,154
Ubuntu 9.10 Karmic Koala
Re: downloading libcups.so.2

Quote:
Originally Posted by ecs_pf5 View Post
Apologies but can someone simplify the procedure for a newbie?


My last post is as simple as it can be made. But to help clarify.
On a AMD64 Ubuntu install. Libraries are in 2 seperate folders
1. /usr/lib This is the location of the 64bit libraries on a 64bit system.
2. /usr/lib32 this is the place for 32bit libraries on a 64bit system

On a 32bit system 32bit libraries are in /usr/lib. This is why we cant force install libraries. Because if we do we can overwrite a 64bit version of the files on or system. Our 64bit system wont be able to use it and may become broken.

Next. In all the deb files is a directory tree that matches the file system on your computer. But its matched to the operating system its designed for . So in a i386 package 32bit libraries are in /usr/lib , in a AMD64 package 64bit libraries are in /usr/lib.
We can download the 32bit package. We can extract the file structure of a deb file. and copy the files into the location they go on our system. Then the 32bit application will use them and the 64bit applications will still have their own version of them.

Quote:
Originally Posted by ecs_pf5 View Post

1. i386 libcupsys > extract > get libcups.so.2 > place in /usr/lib32 ...great ok, next one = libgnutls.so.13

You added things while I was typing. To answer that question, search for the package that has that file, exteract it, and copy in the files. rinse and repeat.
__________________
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

Last edited by Kilz; June 15th, 2007 at 04:11 PM..
Kilz is offline   Reply With Quote
Old June 15th, 2007   #10
ecs_pf5
Way Too Much Ubuntu
 
Join Date: Mar 2007
Location: UK
Beans: 225
Kubuntu 7.10 Gutsy Gibbon
Re: downloading libcups.so.2

Thanks very much Kilz. Sorry I'm fairly new at Linux so I have a little trouble getting my head around some of the concepts.. got it straight in my head now. I think

Seems to be working great, part way through, fingers crossed. Yes I'm just 'documenting as I go' sorry for confusing things back there
__________________
MS-6534v1 no-name mobo,
Vanta 8Mb AGP video, IDE 10Gb maxtor sda, Intel P2 1.9GHz FSB 100MHz,
512 Mb PC-133 RAM,
Kubuntu 8.10 32-bit (desktop CD)
ecs_pf5 is offline   Reply With Quote

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 08:40 PM.


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