LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-26-2014, 06:28 PM   #1
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 70

Rep: Reputation: 1
Trying to install 32bit version of a program on Slackware64 (Pure Data)


I'm attempting to install Pd-extended (Pure Data) on my Slackware64 14.1 system running on a ThinkPad T410. There's a SlackBuild for this program, so it should be a pretty easy task.

After installing all of the dependencies, I installed Pd-extended. The program works as expected, however it turns out that 64-bit builds are still considered to be in beta. Because of this, I'd like to install a more stable 32-bit version. This shouldn't be a problem. I'm already using Alien Bob's multilib setup for Skype.

This is where I could use some guidance. I thought I could probably compile a 32-bit version if I first installed 32-bit versions of all the dependencies, but I didn't want to mess around with that, so I thought it would be cleaner to create a 32-bit Slackware virtual machine to compile the package.

After creating the 32-bit VM and getting all the dependencies installed, I finally got a 32-bit SlackBuilds package for Pd-extended. I copied it over to the 64-bit host system and installed it. It installs fine, but when I try to run the program, I get a bunch of errors.
The first error is that it can't find "/usr/tcl//pd-gui.tcl". The installation does create a file called pd-gui.tcl, but it's put in /usr/bin/. If I create a copy of this and put it at /usr/tcl/pd-gui.tcl, then it complains about not being able to find another component, pd_connect. I haven't dug around to find this one yet, but feel that there must be something wrong with the package. I get similar problems if I try to install and run the package on the VM that created it.

I guess my question is, is this a reasonable method to try and create a 32-bit package for my 64-bit system? Do you notice anything in my method that would explain why the package isn't installing properly?

Also, is there anyone who happens to have a 32-bit binary for Pd-extended that they wouldn't mind sharing with me?
Alternatively, is there an easy way to install a debian package? The Pure Data website does provide .deb packages.
 
Old 01-26-2014, 06:59 PM   #2
azinulbizar
LQ Newbie
 
Registered: Oct 2013
Distribution: slackware64
Posts: 27

Rep: Reputation: Disabled
Quote:
Originally Posted by WhiteHotLoveTiger View Post

I guess my question is, is this a reasonable method to try and create a 32-bit package for my 64-bit system? Do you notice anything in my method that would explain why the package isn't installing properly?

Also, is there anyone who happens to have a 32-bit binary for Pd-extended that they wouldn't mind sharing with me?
Alternatively, is there an easy way to install a debian package? The Pure Data website does provide .deb packages.
There seems to be a multi-arch package on slackbuilds.org for this. It explains to use "pdextended" to start the 32-bit version and "pdextended64" to start the 64-bit version. If you want to compile software that is 32-bit on a 64-bit multi-arch platform, use a slackbuild script(if available) and pass it the argument "ARCH=x86_64".

It would look like this:
Code:
# ARCH=x86_64 ./pd-extended.SlackBuild
 
Old 01-26-2014, 07:18 PM   #3
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 70

Original Poster
Rep: Reputation: 1
Thanks for the reply.

Just to clarify, I'd like to have the x86 version of the program running on my x86_64 system. Shouldn't I run:
Code:
# ARCH=x86 ./Pd-extended.SlackBuild
Wouldn't this create the 32-bit binaries?

Also, when I installed it on my 64-bit system, I ended up with the "pdextended64" executable, but not "pdextended". In fact, I don't even have "pdextended" on my 32-bit VM. I'm sure there must be something wrong with the package I created.
 
Old 01-26-2014, 07:35 PM   #4
azinulbizar
LQ Newbie
 
Registered: Oct 2013
Distribution: slackware64
Posts: 27

Rep: Reputation: Disabled
Quote:
Originally Posted by WhiteHotLoveTiger View Post
Thanks for the reply.

Just to clarify, I'd like to have the x86 version of the program running on my x86_64 system. Shouldn't I run:
Code:
# ARCH=x86 ./Pd-extended.SlackBuild
Wouldn't this create the 32-bit binaries?
No, if you want to create strictly 32-bit binaries you need to use "i486" as the arch flag.
 
Old 01-26-2014, 07:44 PM   #5
azinulbizar
LQ Newbie
 
Registered: Oct 2013
Distribution: slackware64
Posts: 27

Rep: Reputation: Disabled
Quote:
Originally Posted by WhiteHotLoveTiger View Post
Thanks for the reply.

Just to clarify, I'd like to have the x86 version of the program running on my x86_64 system. Shouldn't I run:
Code:
# ARCH=x86 ./Pd-extended.SlackBuild
Wouldn't this create the 32-bit binaries?
No, if you want to create strictly 32-bit binaries you need to use "i486" as the arch flag.
 
Old 01-26-2014, 09:04 PM   #6
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 70

Original Poster
Rep: Reputation: 1
I'm not sure if I should start a new thread for this, but when trying to run the SlackBuild, it ends part way through with the message,
Code:
rmdir: failed to remove '/tmp/SBo/package-Pd-extended/usr/lib/pkgconfig': Directory not empty
Is there anything I can do about this, or do I pretty much need to talk to the author of the SlackBuild?

The directory contains:
Code:
# ls /tmp/SBo/package-Pd-extended/usr/lib/pkgconfig/
Gem.pc  pdextended.pc
 
Old 01-26-2014, 10:26 PM   #7
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,656

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Don't complicate things uselessly. Looking at the SlackBuild the author takes care of dealing with 64 vs 32 bits, so there should be actually no need to make a 32 bits package.
 
Old 01-26-2014, 10:40 PM   #8
WhiteHotLoveTiger
Member
 
Registered: Jun 2012
Location: NB, Canada
Distribution: Slackware
Posts: 70

Original Poster
Rep: Reputation: 1
Thanks for the reply, Didier.

The reason I want to make a 32-bit package is that the 64-bit version is still considered a beta, and some libraries are known to have serious issues.
 
Old 01-26-2014, 10:53 PM   #9
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,656

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Quote:
Originally Posted by WhiteHotLoveTiger View Post
Thanks for the reply, Didier.

The reason I want to make a 32-bit package is that the 64-bit version is still considered a beta, and some libraries are known to have serious issues.
I understand. But as long as you don't personally encounter these issues, does that really matter (unless security be in concern)?
 
  


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
Problem with Icecat install, No Icon to launch program. Slackware64, why is this? blackcatconjure Slackware 5 10-31-2013 11:24 AM
[SOLVED] centos5 both 32bit glibc and 64 glibc exist, how to delete the 32bit version zousheng Linux - Newbie 2 04-03-2013 10:17 AM
[SOLVED] Is Kubuntu 12.04 64bit version buggy vs 32bit version? esgol Linux - Newbie 3 07-10-2012 04:01 AM
[SOLVED] compiling 32bit programs in slackware64 animeresistance Slackware 7 08-05-2011 06:35 PM
Do you require 32bit compatibility in Slackware64-current? samac Slackware 43 06-20-2009 03:47 PM


All times are GMT -5. The time now is 08:04 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration