LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-22-2011, 09:00 AM   #1
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 289

Rep: Reputation: 31
Question Installing pdksh on 64bit machine


Dear all,
I'm trying to install pdksh-5.2.14 in my Slackware-13.0-64 machine. I downloaded the build with the source from slackbuild.org and ran the build script but got the following error:
Code:
gcc -c  -DHAVE_CONFIG_H -I. -I. -O2 -march=i486 -mtune=i686  -DDEBIAN alloc.c
alloc.c:1: error: CPU you selected does not support x86-64 instruction set
make: *** [alloc.o] Error 1
Does this mean the software is not for 64bit machine? How can I fix this? The info file doesn't show me the location of the 64bit version, therefore I assume this one worked on such machine.

best regards,
ethereal1m
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-22-2011, 09:27 AM   #2
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 546

Rep: Reputation: 196Reputation: 196
Hi,
this sounds maybe stupid, but have you enabled multilib?
 
Old 07-22-2011, 10:48 AM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.2
Posts: 3,093

Rep: Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472Reputation: 1472
Well, -march=i486 -mtune=i686 are not the right flags for x86-64. src2pkg was able to give it the correct flags on my machine, but I don't run multilib.
 
1 members found this post helpful.
Old 07-22-2011, 11:18 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,125

Rep: Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491Reputation: 3491
It's quite simple to use pdksh.Slackbuild for x86_64 :


Edit line 32 in pdksh.Slackbuild from : ARCH=${ARCH:-i486}

to : ARCH=${ARCH:-x86_64}
 
2 members found this post helpful.
Old 07-22-2011, 10:09 PM   #5
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 289

Original Poster
Rep: Reputation: 31
@knudfl,
I was an idiot, didn't bother to check the script.. Thanks for the very useful pointer...
 
  


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
Installing the Shell "pdksh" in my Ubuntu9.10 rana2009 Linux - Newbie 1 11-01-2009 07:59 PM
Fortran code on 32/64bit machine Matz Programming 3 06-12-2009 07:26 AM
Installing pdksh on CentOS jbaltodano Linux - Newbie 15 05-28-2009 10:20 AM
Flash player in 64bit machine vladlx Linux - Software 1 06-27-2007 05:24 AM
FC5 64bit on 32 bit machine ekdya Fedora 3 09-15-2006 04:52 AM

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

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