-
Senior Member
registered user
Re: HowTo get the 64 bits compile & Run Time environment for Knoppix 7.6.0 ?
Some time ago you provided a HowTo get the 64 bits compile & run time environment for Knoppix 7.0.2
Hi Gilles!
Under Knoppix 7.6.0 I did the following to run 'Three Million Digits PI Calculation'.
I booted Knoppix 7.6.0 with 64 bit kernel in VirtualBox 5.0.10 on a MS Windows 8.1 host. I used a virtual machine with 2 cores and 3072 MB of RAM.
In an LXTerminal I did some preparing steps.
Code:
sudo apt-get update
sudo apt-get install time
sudo apt-get -t testing install libc6-dev-amd64
mkdir /home/knoppix/src
cd /home/knoppix/src
wget http://h2np.net/pi/pi_quick_start.tar.gz
tar xf pi_quick_start.tar.gz
cd pi_quick_start
export CFLAGS=-m64
I loaded start.sh into a text editor and replaced all occurences of 'cc ' with 'gcc -m64 '. I saved the file and closed the text editor.
I issued and answered all questions with 'y'. I got the following result.
Start and wait for a while...done
Command being timed: "./pi 3000000"
User time (seconds): 2.06
System time (seconds): 0.09
Percent of CPU this job got: 99%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:02.16
Type any key for finish
The command 'file pi' gave
pi: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=88fc7ab989da115e5771ec97aefe8d964726a127, not stripped
Btw. I am _not_ the inventor of Knoppix.
Best Regards.
-
Hi Klaus,
It helps to know that the new name for this library is: libc6-dev-amd64.
It works great. Thank you very much.
Best Regards,
Gilles
PS: If not you who is the inventor of Knoppix ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Intel Core i7-7800x 6 Core 3.5GHz FCLGA2066 Desktop Processor
$37.47
Intel Core i5-11400F Processor (4.4 GHz, 6 Cores, Socket FCLGA1200) SRKP1
$79.99
Intel Xeon E5-2680 v4 SR2N7 14 Core 2.4 GHz Server Processor
$15.99
Intel - Core i5-14600K 14th Gen 14-Core 20-Thread - 4.0GHz (5.3GHz Turbo) Soc...
$306.99
AMD Ryzen 9 7900X3D Gaming Processor - 12 Core And 24 Threads - 5.60 GHz Max Boo
$349.00
Intel - Core i9-14900K 14th Gen 24-Core 32-Thread - 4.4GHz (6.0GHz Turbo) Soc...
$619.99
AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$79.00
AMD Ryzen 7 5800X 8-core, 16-Thread Unlocked Desktop Processor Openbox
$164.98
Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor
$262.49
Intel Core i7-9700K 3.6GHz Octa-Core FCLGA1151 CPU Processor SRG15 Fast Ship
$169.99