-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build script tries to install NTL in /usr/local/include/NTL #45
Comments
That's interesting. We do configure NTL with:
run(`./configure PREFIX=$vdir DEF_PREFIX=$nemovdir .....`)
and certainly neither of those directories is /usr/local/include/NTL. I'm
not sure what is causing this issue.
Perhaps we are issuing the configure command to NTL incorrectly.
|
According to the comments in NTL's |
I wonder if it is fixed in a later version of NTL, and if such a version
will work with Singular.
Otherwise, we might need to apply a patch.
I wonder if this could explain some of the difficulties we've had on OSX (I
realise it shouldn't work on Linux either, but maybe we've just been lucky).
|
This does not explain any of the difficulties I had on OS X, sorry. And this problem occurs on a Linux machine. Singular itself works with newer versions of NTL, but I am not sure if this problem is fixed there. |
TBH, I encountered this problem before, but was too lazy to dig into it. This is why I put the Should I investigate this? |
If you have time, that would be great.
Of course, adding sudo is not a way around it in general. Most users
wouldn't have sudo access to their machines. But it's understandable why
one would do it in a Docker image.
|
It basically solved it back then without much hassle for me, so I was fine with doing it in the image. I will investigate this. |
So, after investigating this, I found the following explanation: For correctly executing the configure script of ntl, you need a Then the I guess we should at least |
Thank you for investigating this @sebasguts. After installing |
This issue was fixed in NTL 10.1.0, released 2016-10-14 -- perhaps you could switch from NTL 9.3.0 to that, or an even newer version of NTL? |
Note that this "sudo" was introduced originally as a workaround for oscar-system/Singular.jl#45 As this issue is resolved, it should not be neccessary anymore.
avoid using n_Init with ring as second arugment
When executing
Pkg.build("Singular")
, the build script seems to try to install NTL under/usr/local/include/NTL
, which usually fails when executed as a non-privileged user.The text was updated successfully, but these errors were encountered: