mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2018-04-06, 04:54   #1
Yoshi24517
 
Yoshi24517's Avatar
 
Mar 2017

1710 Posts
Default mprime not being recognized on ubuntu 16.04

Hello all,

I have a DigitalOcean Droplet running Ubuntu 16.04. I have installed it and everything. However, when I try the command mprime -m, it says,
Code:
mprime: command not found
When I do the ls command on the directory, it says that mprime is in the current folder. (See attached picture.) What do I do here? Would really appreciate some help.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2018-04-05 at 9.52.42 PM.png
Views:	102
Size:	198.3 KB
ID:	18065  

Last fiddled with by Yoshi24517 on 2018-04-06 at 04:55 Reason: formatting fixes
Yoshi24517 is offline   Reply With Quote
Old 2018-04-06, 04:57   #2
srow7
 
Jul 2014

2·52 Posts
Default

try ./mprime

or fix your search path
srow7 is online now   Reply With Quote
Old 2018-04-06, 05:00   #3
Yoshi24517
 
Yoshi24517's Avatar
 
Mar 2017

17 Posts
Default

I don't know why, but that worked. Thanks! Why didn't it work if I just did "mprime" in general?
Yoshi24517 is offline   Reply With Quote
Old 2018-04-06, 05:08   #4
axn
 
axn's Avatar
 
Jun 2003

22·52·72 Posts
Default

https://askubuntu.com/questions/3206...rent-directory
axn is online now   Reply With Quote
Old 2018-04-06, 05:10   #5
srow7
 
Jul 2014

628 Posts
Default

verify your search path with

echo $path

dont know how to add new dir to those paths
srow7 is online now   Reply With Quote
Old 2018-04-06, 05:47   #6
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts
Default

I feel it is important to note for those who aren't familiar that this is true of all modern operating systems; not just Linux, not even just all Unices (e.g. BSD&Mac), but even of Windows systems as well. There are a set of system-level directories which are searched by default, not including the "current" directory.

The act of "installing" the program usually means, in its most distilled, fundamental form, that the program has been stored in these system directories where it can be run by any user without worrying about its location. (Again, this definition is cross platform and has the same meaning on all modern user-oriented OSs.) In this case, however, mprime does not offer any installation functionality (unlike Prime95), so it is, strictly speaking, incorrect to say that you installed it. Downloading mprime in Ubuntu is just like downloading any random .exe in Windows: you have to find its location before you run it (whether by typing its path [e.g. ./] in terminal or by double clicking the icon in a graphical file system browser).
Dubslow is offline   Reply With Quote
Old 2018-04-06, 06:36   #7
axn
 
axn's Avatar
 
Jun 2003

22×52×72 Posts
Default

Quote:
Originally Posted by Dubslow View Post
but even of Windows systems as well. There are a set of system-level directories which are searched by default, not including the "current" directory.
In windows, the current folder takes precedence over PATH. And you don't need the.\ prefix. That is a significant departure from *nix
axn is online now   Reply With Quote
Old 2018-04-06, 06:55   #8
Dubslow
Basketry That Evening!
 
Dubslow's Avatar
 
"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts
Default

Quote:
Originally Posted by axn View Post
In windows, the current folder takes precedence over PATH. And you don't need the.\ prefix. That is a significant departure from *nix
Huh, TIL.
Dubslow is offline   Reply With Quote
Old 2018-04-06, 08:28   #9
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

3·1,951 Posts
Default

Quote:
Originally Posted by axn View Post
In windows, the current folder takes precedence over PATH. And you don't need the.\ prefix. That is a significant departure from *nix
Until you are forced to use powershell.
henryzz is offline   Reply With Quote
Old 2018-04-06, 15:45   #10
chris2be8
 
chris2be8's Avatar
 
Sep 2009

7×172 Posts
Default

Also you look to be running as root in the screenshot. You don't want to run programs as root unless they *really* need to be run as root.

Chris
chris2be8 is offline   Reply With Quote
Old 2018-04-06, 18:52   #11
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22·13·59 Posts
Default

Quote:
Originally Posted by axn View Post
In windows, the current folder takes precedence over PATH. And you don't need the.\ prefix. That is a significant departure from *nix
I always thought that it is more logical to first search in the folder you are currently in before looking everywhere else on the system. But that might be because I am a Windows guy.

An analogy is that you check all your pockets for a missing item without checking what you are actually holding in your hand.
ATH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install mprime on Ubuntu Server Salamander89 Software 3 2011-07-28 15:51
How Do I Make Mprime Work In Ubuntu?? hesdeadjim Software 4 2010-01-01 19:03
How to Run mprime on Ubuntu Jaunty as daemon? Unregistered Information & Answers 1 2009-08-01 02:02
Ubuntu Server Crashes when running mprime 257 roemer2201 Software 9 2008-12-05 18:47
mprime under Ubuntu? Unregistered Linux 8 2007-11-23 23:03

All times are UTC. The time now is 04:25.

Sun Apr 11 04:25:19 UTC 2021 up 2 days, 23:06, 1 user, load averages: 1.79, 1.85, 1.89

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.