-2

I downloaded a tar.gz file from Great Internet Mersenne Prime Search. I extracted it in the terminal, but when I type

cd filename

The terminal says

no such file or directory
  • 3
    Possible duplicate of Cannot Access Anything – karel Jan 3 at 19:31
  • 3
    Not a dupe of that - most likely OP is just in the wrong directory. Target describes a very unusual situation. The real question is how to install the software, which was answered – Zanna Jan 7 at 17:21
2

Installation from tarball depends on the what is inside that tarball. Moreover cd (or change director), as the name suggests, can only be used with directories or folder names instead of file name. If you are using folder name and still getting an error, then you need to check existence of the directory or permissions.

On Great Internet Mersenne Prime Search's download page point 4 says,

Start the program!
Linux and FreeBSD users should run the program from the command line with a -m switch, i.e.

./mprime -m

I expect that you've extracted the tar into a folder, let's say GIMPS and that's on Desktop.
So, you need to run:

cd ~/Desktop/GIMPS
./mprime -m 
0

When I click on the tarball to download it, it downloads a file called p95v294b8.linux64.tar.gz. When I right-click it and select 'Extract Here`, a directory is extracted called p95v294b8.linux64.

To run the software, do:

cd ~/Downloads/p95v294b8.linux64
./mprime -m

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.