mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2019-03-22, 01:08   #1
ssybesma
 
"Steve Sybesma"
May 2012
Brighton, CO USA

34 Posts
Default problem running 64-bit Linux version

I tried this under Ubuntu 14.04 LTS 64-bit, but the command wasn't recognized.

Is there something more to the command (in some cases)? Do the files have to run from a specific folder?

I noticed there is no file extension, just mprime but I guess that isn't as important in Linux. I guess the first few bytes (header) inside the file are probably all that matters.

I ran these two ways with same result:

./mprime -m <-- being the "./" just means current folder, I suppose that's not needed?

sudo ./mprime -m

Thank you!

Last fiddled with by ssybesma on 2019-03-22 at 01:14
ssybesma is offline   Reply With Quote
Old 2019-03-22, 01:17   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,617 Posts
Default

Quote:
Originally Posted by ssybesma View Post

./mprime -m <-- being the "./" just means current folder, I suppose that's not needed?
It is needed!

Did you download the 64-bit version of mprime? And what version number?

What response is there to ./mprime -m?

Last fiddled with by paulunderwood on 2019-03-22 at 01:18
paulunderwood is offline   Reply With Quote
Old 2019-03-22, 01:21   #3
GP2
 
GP2's Avatar
 
Sep 2003

1010000110112 Posts
Default

Quote:
Originally Posted by ssybesma View Post
I tried this under Ubuntu 14.04 LTS 64-bit, but the command wasn't recognized.
Long-term support (five years) for Ubuntu 14.04 expires next month. Perhaps you might consider updating to 18.04

Quote:
I ran these two ways with same result:

./mprime -m <-- being the "./" just means current folder, I suppose that's not needed?
What was the result? What wasn't recognized?

The ./ actually is necessary on Linux.

It shouldn't matter which folder you run it from, as long as your user account has permissions to create files in that folder.
GP2 is offline   Reply With Quote
Old 2019-03-22, 01:31   #4
ssybesma
 
"Steve Sybesma"
May 2012
Brighton, CO USA

34 Posts
Default

Quote:
Originally Posted by GP2 View Post
Long-term support (five years) for Ubuntu 14.04 expires next month. Perhaps you might consider updating to 18.04

What was the result? What wasn't recognized?

The ./ actually is necessary on Linux.

It shouldn't matter which folder you run it from, as long as your user account has permissions to create files in that folder.

OK, since I was having issues with Ubuntu 14.04 LTS 64-bit filling up the tiny eMMC with its updates, I switched over to Trisquel Mini 64-bit which is about half the size. I'll try decompressing the p95v294b8.linux64.tar.gz file again and put into a folder on the desktop and see if it can be run from terminal again. That's what I did before when I was using Ubuntu.

Last fiddled with by ssybesma on 2019-03-22 at 01:32
ssybesma is offline   Reply With Quote
Old 2019-03-22, 03:19   #5
ssybesma
 
"Steve Sybesma"
May 2012
Brighton, CO USA

34 Posts
Default mprime for Linux is not executable by any method I know

This thing is DEAD. Here's all the text copied from the command window of Trisquel Mini:

(same exact issue with Ubuntu 14.04 LTS 64-bit)

I have to run a smaller Linux distro because this thing only has an 8GB eMMC and 1GB RAM.

====================

To run a command as administrator (user "root"), use "sudo <command>".
To become root use "sudo -i".
See "man sudo_root" for details.

penguin@STCK1A8LFC-A079AF:~/Desktop/mprime$ ./mprime -m
bash: ./mprime: Permission denied
penguin@STCK1A8LFC-A079AF:~/Desktop/mprime$ sudo ./mprime -m
[sudo] password for penguin:
sudo: ./mprime: command not found
penguin@STCK1A8LFC-A079AF:~/Desktop/mprime$ mprime -m
mprime: command not found
penguin@STCK1A8LFC-A079AF:~/Desktop/mprime$

====================

Here's the files I extracted from p95v294b8.linux64.tar.gz to a folder on my desktop:

libgmp.so <-- 0 byte 'shortcut' file
libgmp.so.10 <-- 0 byte 'shortcut' file
libgmp.so.10.3.2 <-- 532.9 KiB shared library
license.txt
mprime <-- 32.7 MiB executable -- only file which does not have an extension
readme.txt
stress.txt
undoc.txt
whatsnew.txt

Last fiddled with by ssybesma on 2019-03-22 at 03:21
ssybesma is offline   Reply With Quote
Old 2019-03-22, 03:28   #6
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3,617 Posts
Default

What does uname -a give?

What does ls -l /home/penguin/Desktop/mprime give?
paulunderwood is offline   Reply With Quote
Old 2019-03-22, 04:45   #7
ssybesma
 
"Steve Sybesma"
May 2012
Brighton, CO USA

34 Posts
Default

uname -a:

penguin@STCK1A8LFC-A079AF:~$ uname -a

Linux STCK1A8LFC-A079AF 4.4.0-119-generic #143+8.0trisquel2 SMP Thu Apr 5 16:24:48 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

ls -l /home/penguin/Desktop/mprime:

penguin@STCK1A8LFC-A079AF:~$ ls -l /home/penguin/Desktop/mprime

total 34124
lrwxrwxrwx 1 penguin penguin 16 Feb 9 2018 libgmp.so -> libgmp.so.10.3.2
lrwxrwxrwx 1 penguin penguin 16 Feb 9 2018 libgmp.so.10 -> libgmp.so.10.3.2
-rw-r--r-- 1 penguin penguin 545695 Feb 9 2018 libgmp.so.10.3.2
-rw-r--r-- 1 penguin penguin 2110 Feb 9 2018 license.txt
-rw-r--r-- 1 penguin penguin 34259741 Feb 9 2018 mprime
-rw-r--r-- 1 penguin penguin 20019 Feb 9 2018 readme.txt
-rw-r--r-- 1 penguin penguin 6860 Feb 9 2018 stress.txt
-rw-r--r-- 1 penguin penguin 36601 Feb 9 2018 undoc.txt
-rw-r--r-- 1 penguin penguin 55153 Feb 9 2018 whatsnew.txt

penguin@STCK1A8LFC-A079AF:~$

Last fiddled with by ssybesma on 2019-03-22 at 04:47
ssybesma is offline   Reply With Quote
Old 2019-03-22, 04:54   #8
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

5·1,223 Posts
Default

Mark it as executable:
Code:
chmod +x mprime

Last fiddled with by retina on 2019-03-22 at 04:54
retina is offline   Reply With Quote
Old 2019-03-22, 04:56   #9
ssybesma
 
"Steve Sybesma"
May 2012
Brighton, CO USA

34 Posts
Default

Thank you Dr. Evil!!!

That did the trick!!!
ssybesma is offline   Reply With Quote
Old 2019-03-22, 05:04   #10
retina
Undefined
 
retina's Avatar
 
"The unspeakable one"
Jun 2006
My evil lair

5·1,223 Posts
Default

Quote:
Originally Posted by ssybesma View Post
Thank you Dr. Evil!!!

That did the trick!!!
Now find us all a shiny new prime.
retina is offline   Reply With Quote
Old 2019-03-22, 07:27   #11
ssybesma
 
"Steve Sybesma"
May 2012
Brighton, CO USA

5116 Posts
Default

Quote:
Originally Posted by retina View Post
Now find us all a shiny new prime.
I have 4 cores on this Intel Compute Stick apparently but it's only a 1.33 GHz Atom processor.

Somehow I got 3 cores working on one number, and 1 core working on another number.

Have to figure out the command line menu to consolidate all 4 cores to work on just one number and give the other one back to the pool.

Since I finally got this dream to work of having the lowest-end Intel Compute Stick (8GB storage and only 1GB RAM) to do this project, I have another of those on hand and am buying 10 more for this project. They're only $30 apiece...there's a huge surplus and nobody wants them because they're practically unusable out of the box.

I learned about Linux distros and how to set them up in a crash course the past 5 days and I have Trisquel Mini on this thing (I'm on it now while mprime is running). It takes up less storage and memory. I learned how to setup a swap file and have one that's 1.5GB (larger than the original file of under 1GB).

I have this thing working as well as I expected...just need to figure out how to consolidate.
ssybesma is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running octoproth program in Linux jasong Octoproth Search 9 2007-12-27 02:44
running linux version Unregistered Information & Answers 1 2007-09-08 17:59
Linux - what version to use, where doI get it rx7350 Software 19 2006-03-17 08:18
running old version of mprime for speed? talcum Software 4 2005-03-03 15:24
monitoring a Linux version Carlo Monari Software 4 2004-12-11 17:26

All times are UTC. The time now is 00:12.

Tue Apr 13 00:12:28 UTC 2021 up 4 days, 18:53, 1 user, load averages: 2.81, 2.51, 2.40

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.