mersenneforum.org mprime not being recognized on ubuntu 16.04
 Register FAQ Search Today's Posts Mark Forums Read

 2018-04-06, 04:54 #1 Yoshi24517     Mar 2017 1710 Posts 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   Last fiddled with by Yoshi24517 on 2018-04-06 at 04:55 Reason: formatting fixes
 2018-04-06, 04:57 #2 srow7   Jul 2014 2·52 Posts try ./mprime or fix your search path
 2018-04-06, 05:00 #3 Yoshi24517     Mar 2017 17 Posts I don't know why, but that worked. Thanks! Why didn't it work if I just did "mprime" in general?
 2018-04-06, 05:08 #4 axn     Jun 2003 22·52·72 Posts
 2018-04-06, 05:10 #5 srow7   Jul 2014 628 Posts verify your search path with echo \$path dont know how to add new dir to those paths
2018-04-06, 05:47   #6
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3×29×83 Posts

Quote:
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).

2018-04-06, 06:36   #7
axn

Jun 2003

22×52×72 Posts

Quote:
 Originally Posted by Dubslow 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

2018-04-06, 06:55   #8
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

3·29·83 Posts

Quote:
 Originally Posted by axn 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.

2018-04-06, 08:28   #9
henryzz
Just call me Henry

"David"
Sep 2007
Cambridge (GMT/BST)

3·1,951 Posts

Quote:
 Originally Posted by axn 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.

 2018-04-06, 15:45 #10 chris2be8     Sep 2009 7×172 Posts 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
2018-04-06, 18:52   #11
ATH
Einyen

Dec 2003
Denmark

22·13·59 Posts

Quote:
 Originally Posted by axn 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.

 Similar Threads Thread Thread Starter Forum Replies Last Post Salamander89 Software 3 2011-07-28 15:51 hesdeadjim Software 4 2010-01-01 19:03 Unregistered Information & Answers 1 2009-08-01 02:02 roemer2201 Software 9 2008-12-05 18:47 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