Singular.jl icon indicating copy to clipboard operation
Singular.jl copied to clipboard

Pkg.build("Singular") yields 'Permission denied'

Open ahumenberger opened this issue 6 years ago • 4 comments

When trying to install Singular.jl on Ubuntu 18.04, the installation of the dependency NTL failed. Here is the error message:

mkdir -p -m 755 /usr/local/include
rm -rf /usr/local/include/NTL
mkdir -m 755 /usr/local/include/NTL
mkdir: cannot create directory ‘/usr/local/include/NTL’: Permission denied
makefile:427: recipe for target 'install' failed
make: *** [install] Error 1
==============================[ ERROR: Singular ]===============================

LoadError: failed process: Process(`make install`, ProcessExited(2)) [2]
while loading /home/ahumenbe/.julia/v0.6/Singular/deps/build.jl, in expression starting on line 30

ahumenberger avatar May 28 '18 08:05 ahumenberger

It's good that it failed because it is not supposed to be installing anything globally. It is supposed to install it locally in your .julia directory. We do use a prefix, so it's a puzzle as to why this is happening.

I will ask around and see if anyone else has seen this issue.

wbhart avatar May 28 '18 08:05 wbhart

I went again through the install log and found an error message (way above the actual error where the installation fails) saying that libtool is not available. I installed libtool and now the installation of NTL works. Apparently, the availability of libtool decides whether the given prefix is used or not. Does that make sense?

ahumenberger avatar May 28 '18 09:05 ahumenberger

Thanks for tracking that down! This seems like a very odd peculiarity of autotools. I will report it, but I think the best solution in the long run is for us to just spell out what the prerequisites are to build Singular.jl. I suspect that will be the ultimate solution.

It actually amazes me that components of autotools can be a prerequisite that isn't met on modern systems. Or perhaps we just did something stupid somewhere. I'm not an autotools expert, so I actually don't know.

On 28 May 2018 at 11:59, ahumenberger [email protected] wrote:

I went again through the install log and found an error message (way above the actual error where the installation fails) saying that libtool is not available. I installed libtool and now the installation of NTL works. Apparently, the availability of libtool decides whether the given prefix is used or not. Does that make sense?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wbhart/Singular.jl/issues/28#issuecomment-392481226, or mute the thread https://github.com/notifications/unsubscribe-auth/AAOzpr2vIFjgzaiRFyUw0LmLUy-NizLSks5t28qNgaJpZM4UP0MU .

wbhart avatar May 28 '18 11:05 wbhart

See also https://github.com/oscar-system/Singular.jl/issues/45

fingolfin avatar Nov 14 '18 12:11 fingolfin