-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to install paths #5
Comments
Hi @vkuznet There is however a pending pull request here luabind/luabind#11 that makes luabind compatible with lua 5.2. I'll check it again whenever it gets merged. |
paths isn't dependent on luabind. but I dont know if paths is compatible with lua52. |
I have the same issue trying to install torch with macports (and without homebrew). @vkuznet did you have any success? I was trying to prepare an install script for macports users (whilst installing torch myself) but got stuck at this hurdle. |
Nope, I tried couple of times and fail, then I put it aside to do other tasks. On 0, JobJob notifications@github.com wrote:
|
Just run into this too. |
As a result, this issue remained nearly 4 month.....oops... I've just got a plan, let me try it then ;-) update: Personal perspective: /tmp/luarocks_paths-scm-1-1765/paths/paths.c: In function 'lua_tmpname':
/tmp/luarocks_paths-scm-1-1765/paths/paths.c:730:3: warning: 'tempnam' is deprecated (declared at /usr/include/stdio.h:391): This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tempnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations]
char *tmp = tempnam(NULL, "luatmp");
^
/tmp/luarocks_paths-scm-1-1765/paths/paths.c: In function 'pushnexttemplate':
/tmp/luarocks_paths-scm-1-1765/paths/paths.c:991:20: error: 'LUA_PATHSEP' undeclared (first use in this function)
while (*path == *LUA_PATHSEP) path++; /* skip separators */
^
/tmp/luarocks_paths-scm-1-1765/paths/paths.c:991:20: note: each undeclared identifier is reported only once for each function it appears in
/tmp/luarocks_paths-scm-1-1765/paths/paths.c: In function 'pushfilename':
/tmp/luarocks_paths-scm-1-1765/paths/paths.c:1003:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
lua_getfield(L, LUA_GLOBALSINDEX, "package");
^
/tmp/luarocks_paths-scm-1-1765/paths/paths.c: In function 'luaopen_libpaths':
/tmp/luarocks_paths-scm-1-1765/paths/paths.c:1110:19: error: 'LUA_GLOBALSINDEX' undeclared (first use in this function)
lua_setfield(L, LUA_GLOBALSINDEX, "paths");
^
make[2]: *** [CMakeFiles/paths.dir/paths.c.o] Error 1
make[1]: *** [CMakeFiles/paths.dir/all] Error 2
make: *** [all] Error 2
Error: Build error: Failed building. According to this error message, maybe something should be rewritten to satisfy the new lua (lua-5.2) language or the macro definition (something like Meanwhile, the linux platform is free of this kind of issues. Why? Installed Packages
Name : lua
Arch : x86_64
Version : 5.1.4
Release : 4.1.el6
Size : 603 k
Repo : installed
From repo : base
Summary : Powerful light-weight programming language
URL : http://www.lua.org/
License : MIT
Description : Lua is a powerful light-weight programming language designed for
: extending applications. Lua is also frequently used as a
: general-purpose, stand-alone language. Lua is free software.
: Lua combines simple procedural syntax with powerful data description
: constructs based on associative arrays and extensible semantics. Lua
: is dynamically typed, interpreted from bytecodes, and has automatic
: memory management with garbage collection, making it ideal for
: configuration, scripting, and rapid prototyping.
$ luarocks
LuaRocks 2.1.0, a module deployment system for Lua In addition, here comes the key, when I just removed $luarocks --server=https://raw.githubusercontent.com/torch/rocks/master install paths
-bash: /usr/local/bin/luarocks: /usr/local/opt/lua/bin/lua5.2: bad interpreter: No such file or directory Clearly, the problem lies in that the Solutions: (<--Thankfully, this git stops talking about his hallucinations :-)
However, both of them exceeds my ability...but I think I have found the big and know the huge door, just need Hercules to open the door. It's 12:44 AM, night 0.0! |
Haha! Where is our superman: http://youtu.be/o0AOG7ciuJo |
ok, so the issue here seems to be that paths is not compatible with lua52. Let me see what this is all about. I could not reproduce this problem, but we also use our own luajit+luarocks in which we have no issues. When there's system lua installed, things get messy with torch global install. |
ok fixed in However, I STRONGLY recommend that you guys use our packaged luajit+luarocks when using torch. We did not test it on other environments. |
Hi, Error: Failed installing dependency: For your convenience I put full output including my commands I used to clone I use MacPorts, therefore plenty of packages are coming from my ports area rather then Thanks, On 0, Soumith Chintala notifications@github.com wrote:
|
good point. looks like md5sum is central to luarocks. i will try to reproduce this use-case and push a fix to https://github.com/soumith/torch-distro |
(with homebrew, we get md5sum with coreutils, but with macports looks like it is more tricky). |
@soumith Great! |
Nice! The self contained https://github.com/soumith/torch-distro worked for me on OSX 10.9.5, I have md5 installed but not md5sum. Thanks Superman/Hercules! :D |
@vkuznet I looked at your log again, there is an MD5.app that gets detected and is used. Other than that conflicting app of yours, it is working fine on macports for me. |
Thanks for pointing me to the issue. Once I removed MD5.app I was able to On 0, Soumith Chintala notifications@github.com wrote:
|
Hi, I am facing the following issue- I am using Lua 5.2.3. Please tell me how this error can be solved. This answer helped me solve the problem |
the issue looks like still persist in the |
The problem is still here, 4 years later! |
That's true. |
omg! I love u man |
Hi, I was trying to install torch, but turns out it fails to install paths package. I'm using OSX 10.9.3 and I have lua (5.2.3), luagit (2.0.3), luarocks (2.0.13) installed via macports. Here is a full output of the error:
Can you tell from this error what's wrong on my system? Thanks, Valentin.
The text was updated successfully, but these errors were encountered: