LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 08:00 AM   #1
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

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, 08:27 AM   #2
Bindestreck
Member
 
Registered: Jul 2011
Location: Sweden
Distribution: Slackware
Posts: 820

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
Hi,
this sounds maybe stupid, but have you enabled multilib?
 
Old 07-22-2011, 09:48 AM   #3
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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, 10:18 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 09:09 PM   #5
ethereal1m
Member
 
Registered: Jan 2010
Distribution: Ubuntu
Posts: 312

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


Reply



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

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

All times are GMT -5. The time now is 07:10 PM.

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
Open Source Consulting | Domain Registration