Git Product home page Git Product logo

Comments (7)

soumith avatar soumith commented on July 23, 2024

hey @pannous, it looks like the lua cant find the cwrap module, this happens when the path/cpath isn't set appropriately (i.e. maybe there's a lua pre-existing in the system that doesn't have the paths properly set).

The fastest way to get going with torch is to use the ezinstall scripts provided by us.

For a global system-wide install:
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | bash

For installing torch in /local
curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-all | PREFIX=
/local bash

from torch7.

soumith avatar soumith commented on July 23, 2024

let me know if that doesn't help.

from torch7.

pannous avatar pannous commented on July 23, 2024

Wow, that was quick and 100% helpful

Well somehow the make file tried to execute the lua files:

[ 51%] Generating TensorMath.c
make[2]: /Users/me/ai/torch7/TensorMath.lua: Permission denied
[ 48%] Generating TensorMath.c
/Users/me/ai/torch7/TensorMath.lua: line 1: local: can only be used in a function

but adding a shebang
#!/usr/bin/env lua -lluarocks.loader
made it work!

Linking C shared module libtorch.so
[100%] Built target torch

Thanks!

from torch7.

ZhangChenyang avatar ZhangChenyang commented on July 23, 2024

Hi @soumith , I used the ezinstall you post but the path to gfortran cannot be found; while if I cmake under torch7/ it can be found, how can I make it work?

from torch7.

ZhangChenyang avatar ZhangChenyang commented on July 23, 2024

Hi @pannous , I met the Permission Denied problem and cannot make it work, where you suggest to put that shebang into?

from torch7.

pannous avatar pannous commented on July 23, 2024

You have to put it on top of those two lua files which are affected,
I think one was Random.lua I forgot the other one

On Jul 10, 2014, at 12:24 AM, ZhangChenyang [email protected] wrote:

Hi @pannous , I met the Permission Denied problem and cannot make it work, where you suggest to put that shebang into?


Reply to this email directly or view it on GitHub.

from torch7.

soumith avatar soumith commented on July 23, 2024

@ZhangChenyang we just patched the ezinstall scripts and some cmake files to not depend on gfortran!

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.