mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   problem running 64-bit Linux version (https://www.mersenneforum.org/showthread.php?t=24195)

ssybesma 2019-03-22 01:08

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!

paulunderwood 2019-03-22 01:17

[QUOTE=ssybesma;511369]

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

[/QUOTE]

It is needed!

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

What response is there to [c]./mprime -m[/c]?

GP2 2019-03-22 01:21

[QUOTE=ssybesma;511369]I tried this under Ubuntu 14.04 LTS 64-bit, but the command wasn't recognized.[/QUOTE]

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?
[/QUOTE]

What was the result? What wasn't recognized?

The [c]./[/c] 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.

ssybesma 2019-03-22 01:31

[QUOTE=GP2;511371]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 [c]./[/c] 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.[/QUOTE]


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 [URL="http://www.mersenne.org/ftp_root/gimps/p95v294b8.linux64.tar.gz"]p95v294b8.linux64.tar.gz[/URL] 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.

ssybesma 2019-03-22 03:19

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

paulunderwood 2019-03-22 03:28

What does [c]uname -a[/c] give?

What does [c]ls -l /home/penguin/Desktop/mprime[/c] give?

ssybesma 2019-03-22 04:45

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:~$

retina 2019-03-22 04:54

Mark it as executable:[code]chmod +x mprime[/code]

ssybesma 2019-03-22 04:56

Thank you Dr. Evil!!!

That did the trick!!!

retina 2019-03-22 05:04

[QUOTE=ssybesma;511381]Thank you Dr. Evil!!!

That did the trick!!![/QUOTE]Now find us all a shiny new prime.

ssybesma 2019-03-22 07:27

[QUOTE=retina;511383]Now find us all a shiny new prime.[/QUOTE]

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.


All times are UTC. The time now is 08:34.

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