質問

Ok so I am trying to install nano in terminal on my macbook. I downloaded the file, unzipped it, and located the folder/files in terminal. I ran the ./configure command. Then "make." Both ran fine. On "make install" I keep getting an error about permissions and making a directory. This is what the error is:

mkdir: /usr/local: Permission denied
mkdir: /usr/local: No such file or directory
mkdir: /usr/local/share: No such file or directory
mkdir: /usr/local/share/nano: No such file or directory
make[5]: *** [install-htmlmanDATA] Error 1
make[4]: *** [install-am] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Any help or suggestions would be greatly appreciated. Thanks!

役に立ちましたか?

解決

sudo make install

That should fix it. It is telling you that you (the user) do not have permission to make the given folders, sudo lets you run the program as root who has access to the given directories.

他のヒント

sudo make install should do it (as long as you can sudo).

To install it like that ( "below" user account ) you should've specified prefix with configure --prefix option ( before compilation, before make command ) To install systemwide use sudo as suggested above. you may also want to use MacPorts.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top