LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-29-2009, 02:09 AM   #1
CCR_Diver
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
HELP - How do I run 32 bit applications on 64 bit Slackware 13?


Hi:

I've just installed Slackware 13 (64 bit) on my ASUS labtop. So far I have only one show stopper. I'm trying to run CISCO Packettracer5.2 (linux 32 bit version) and it does not seem to run on my 64 bit system. I've seen related posts for other distros that mention a ia32-libs package, but I cannot find a Slackware version of this, or source code. Any ideas and/or advice.


Vital stats:

Slackware 13.0.0.0.0
Intel Core 2 Duo T6400@2.00Ghz
vmlinuz-huge-2.6.29.6

I also have the nvidia binary drivers installed and working.

I've been using Slackware for years but I'm new to the 64 bit game.

Thanks.

CCR_Diver
 
Old 11-29-2009, 02:36 AM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Slackware Linux
Posts: 505

Rep: Reputation: Disabled
http://alien.slackbook.org/dokuwiki/...kware:multilib
 
1 members found this post helpful.
Old 11-29-2009, 02:38 AM   #3
Cheesesteak
Member
 
Registered: Jun 2008
Distribution: Slackware
Posts: 100

Rep: Reputation: 24
Out of the box, Slackware64 is pure 64-bit only. Read the following to learn what you need to run 32-bit as well:

http://alien.slackbook.org/dokuwiki/...kware:multilib

I was beaten to the punch by rg3... can't win 'em all.

Last edited by Cheesesteak; 11-29-2009 at 02:39 AM.
 
1 members found this post helpful.
Old 11-29-2009, 03:12 PM   #4
zbreaker
Member
 
Registered: Dec 2008
Location: New York
Distribution: Slack -current, #!, vsido
Posts: 221

Rep: Reputation: 27
Just follow the procedure per the link(s) above and you'll be in business. My Slackware64-multilib is smooth & sweet.....
 
1 members found this post helpful.
Old 11-30-2009, 01:36 PM   #5
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 535

Rep: Reputation: 36
You could also try this solution.

It might be easier than installing the multilib stuff. But, you will need access to a 32-bit system, to create the static linked version.

Cheers.
 
0 members found this post helpful.
Old 11-30-2009, 03:08 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
Quote:
Originally Posted by MQMan View Post
You could also try this solution.

It might be easier than installing the multilib stuff. But, you will need access to a 32-bit system, to create the static linked version.

Cheers.
THE EASIEST WAY IS ALIEN BOB'S

The way you describe only does java. My system is a heck of a lot more than java.

And what's easier than:
  • Download the packages
  • Install them
Doesn't get any easier
 
Old 11-30-2009, 05:16 PM   #7
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 535

Rep: Reputation: 36
Quote:
Originally Posted by cwwilson721 View Post
THE EASIEST WAY IS ALIEN BOB'S
That's a matter of opinion.
Quote:
Originally Posted by cwwilson721 View Post
The way you describe only does java. My system is a heck of a lot more than java.
If you read the thread, you'll find that I couldn't get it working for Java.

But, it does work perfectly for other applications.

Cheers.
 
Old 12-01-2009, 05:31 AM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 65
Well, I followed the "official ?Slackware way to make multilib".

And guess what? Java works.

Skype works.

Wine works.

All other apps work, that would work on 32 bit SW.

So...

(And it took less than 5 min)

The question is, now:

Do you want to mess around with symlinks, statically linking files in folders all over your system, a "system" that doesn't work?

Or do you want to use the route the the main developer of SW 64bit designed?

I think I'd choose Alien Bob's way, thank you very much.
 
Old 12-02-2009, 06:15 PM   #9
CCR_Diver
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks to all who posted to this thread. This sounds like just the info I need. Sorry to take so long getting back to this post, but I have a daytime job that leaks over into nigh time (if you know what I mean).

CCR_Diver
 
Old 12-03-2009, 07:11 PM   #10
CCR_Diver
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Ok, I finally got a few moments to take a shot at this and I must be missing something. I used the instructions in the "Quick and Dirty" section and I still cannot run 32 bit binaries. Also, when I follow the instructions to compile 32 bit code, I get the following.

bash-3.1$ . /etc/profile.d/32dev.sh
bash-3.1$ cc -o foo3 foo.c
In file included from /usr/include/features.h:354,
from /usr/include/stdio.h:28,
from foo.c:1:
/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory

My Slack 13/32 is about 14 days older than my Slack 13/64. Any chance they made a stealth update between the two downloads? Can anybody clue me in?

CCR
 
Old 12-03-2009, 07:37 PM   #11
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 6

Rep: Reputation: 50
You need to use $CC (which points to /usr/bin/32/gcc) instead of cc to compile your program--cc is symlinked to /usr/bin/gcc which is the 64-bit version, while /usr/bin/32/gcc is the 32-bit version.
 
Old 12-03-2009, 11:02 PM   #12
CCR_Diver
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vik View Post
You need to use $CC (which points to /usr/bin/32/gcc) instead of cc to compile your program--cc is symlinked to /usr/bin/gcc which is the 64-bit version, while /usr/bin/32/gcc is the 32-bit version.
Been there done that, still don't work. Also, I cannot run any programs compiled on a 32 bit Linux system (my old laptop that sill runs Slack 11). When I try to run a 32 bit binary it just gives me "No such file or directory". I think I have some kind of library problem, but at this point I'm stumped. What am I doing wrong? Anyone got any ideas?

Do I need to do something to the kernel? I've read other posts that lead me to think I need some kind of 32bit driver linked into the kernel. Can anyone confirm or this?

Last edited by CCR_Diver; 12-03-2009 at 11:18 PM.
 
Old 12-05-2009, 03:03 AM   #13
vik
Member
 
Registered: Apr 2008
Distribution: Gentoo
Posts: 225
Blog Entries: 6

Rep: Reputation: 50
OK, then it looks like you're missing the file /usr/include/gnu/stubs-32.h. In pkgtool, do you have glibc-2.9-multilib-x86_64-3alien installed? That package contains the file you need: it's one of the packages created when you follow the wiki. Did you have any error messages following the wiki instructions?

One thing to watch out for with multilib is the video driver install--if you choose the option to create the Slackware package, you only get 64-bit video drivers.

Last edited by vik; 12-05-2009 at 03:41 AM.
 
Old 12-05-2009, 07:31 AM   #14
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,778
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Quote:
Do I need to do something to the kernel? I've read other posts that lead me to think I need some kind of 32bit driver linked into the kernel. Can anyone confirm or this?
If you're using a stock Slackware kernel you should be fine. If you rolled your own, you need to make sure it can run 32 bit binaries (IA32 Emulation should be enabled in the Executable File Formats section of the kernel config).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Running 32-bit Applications on 64-bit Debian GNU/Linux LXer Syndicated Linux News 2 01-06-2010 12:26 PM
Trying to install multilib to run 32 bit applications. glore2002 Slackware 3 08-28-2009 11:08 AM
LXer: How to Run 32-bit Apps in 64-bit Linux LXer Syndicated Linux News 0 08-11-2009 08:50 AM
cannot compile 32-bit applications on 64-bit ubuntu 9.04 maxreason Programming 7 06-07-2009 03:27 PM
LXer: Using Adobe Flash and other 32-bit applications on 64-bit Linux LXer Syndicated Linux News 0 07-24-2008 07:10 PM


All times are GMT -5. The time now is 10:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration