Git Product home page Git Product logo

Comments (10)

andresy avatar andresy commented on August 26, 2024

Hi,

Which version of luarocks do you have? Did you try with the luajit+luarocks provided in there:
https://github.com/torch/luajit-rocks
?

Cheers,
Ronan

from torch7.

n-batalha avatar n-batalha commented on August 26, 2024

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)

from torch7.

n-batalha avatar n-batalha commented on August 26, 2024

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).

from torch7.

soumith avatar soumith commented on August 26, 2024

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?

from torch7.

n-batalha avatar n-batalha commented on August 26, 2024

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.

from torch7.

andresy avatar andresy commented on August 26, 2024

@koraykv @clementfarabet : do you remember some problems with --local?

from torch7.

clementfarabet avatar clementfarabet commented on August 26, 2024

I never use --local. I usually make a entirely local install, using PREFIX:

curl -s https://raw.github.com/torch/ezinstall/master/install-luajit+torch | PREFIX=~/local bash

There could be some problems with --local, I'd have to try that.

from torch7.

danielhers avatar danielhers commented on August 26, 2024

@clementfarabet It still asks for a password for sudo this way.

from torch7.

koraykv avatar koraykv commented on August 26, 2024

I have to try, we use --local all the time, but we have our own script :)

from torch7.

soumith avatar soumith commented on August 26, 2024

the https://github.com/torch/distro approach is completely local install. closing the task.

from torch7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.