-
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
module 'cwrap' not found #47
Comments
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: For installing torch in |
let me know if that doesn't help. |
Wow, that was quick and 100% helpful Well somehow the make file tried to execute the lua files: [ 51%] Generating TensorMath.c but adding a shebang Linking C shared module libtorch.so Thanks! |
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? |
Hi @pannous , I met the Permission Denied problem and cannot make it work, where you suggest to put that shebang into? |
You have to put it on top of those two lua files which are affected,
|
@ZhangChenyang we just patched the ezinstall scripts and some cmake files to not depend on gfortran! |
Even after the successful installation of cwrap** and cleaning we cannot successfully manage to compile the project:
$ make
[ 3%] Built target TH
[ 44%] Built target luaT
[ 48%] Generating random.c
lua: random.lua:1: module 'cwrap' not found:
Failed loading module cwrap in LuaRocks rock cwrap scm-1
Any advice?
** cwrap installation successful:
$ luarocks --local --server=https://raw.github.com/torch/rocks/master install cwrap
Installing https://raw.github.com/torch/rocks/master/cwrap-scm-1.rockspec...
Using https://raw.github.com/torch/rocks/master/cwrap-scm-1.rockspec... switching to 'build' mode
Cloning into 'cwrap'...
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 8 (delta 0), reused 5 (delta 0)
Receiving objects: 100% (8/8), 9.80 KiB | 0 bytes/s, done.
Checking connectivity... done.
Updating manifest for $/.luarocks/lib/luarocks/rocks
cwrap scm-1 is now built and installed in $/.luarocks (license: BSD)
The text was updated successfully, but these errors were encountered: