-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Local install failing #27
Comments
Hi, Which version of luarocks do you have? Did you try with the luajit+luarocks provided in there: Cheers, |
Hello, Yeah, should had mentioned! luarocks 2.0.12 (and luajit 2.0.2). I might try that, didn't find it on the install-deps and according to the wiki: "only requires LuaJIT (>= 2.0) and Luarocks (>= 2.0.12)", but could be outdated. (Might take some time to try, by making a clean gentoo ebuild) |
Did as above, and is similar: -- Install configuration: "Release"
CMake Error at cmake_install.cmake:48 (FILE):
file cannot create directory: /usr/local/share/cmake/torch. Maybe need
administrative privileges.
make: *** [install] Error 1
Error: Build error: Failed installing. Without --local also fails, but should be a separate issue (appears to use hardcoded/non-$LUA_PATH dirs, which on other distros might coincide). |
hey, how did you install torch? It looks like it installs the repos relative to the torch dir. Did you try using the ezinstall script as is, except for changing the apt-get calls to gentoo-equivalents? |
Well the install-deps script has been replicated in Gentoo form as is, just replacing by gentoo equivalents. As for the install-script, I also replicated it (see first post). It just sets CMAKE_LIBRARY_PATH, PREFIX and installs luajit-rocks.git before pulling torch etc. I ommited a couple of different PREFIX I tried, makes no difference. I was just avoiding luajit-rocks and a system install, but now also tried those. |
@koraykv @clementfarabet : do you remember some problems with --local? |
I never use --local. I usually make a entirely local install, using PREFIX:
There could be some problems with --local, I'd have to try that. |
@clementfarabet It still asks for a password for sudo this way. |
I have to try, we use --local all the time, but we have our own script :) |
the https://github.com/torch/distro approach is completely local install. closing the task. |
I am replicating the install-luajit+torch script for my distro (Gentoo), but it seems to want to install in root regardless of using --local.
Not cmake literate so not sure if these lines mean it's an expected behaviour:
TorchConfig.cmake.in:
If not, sundown, cwrap and paths install fine, and here is my in/output:
The text was updated successfully, but these errors were encountered: