-
Notifications
You must be signed in to change notification settings - Fork 484
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
Install error on Mac OS X 10.11 #46
Comments
gcc_s.10.5 ?? |
I actually just freshly installed torch from scratch an a new OSX El-Capitan machine. There was no trouble. |
I'm seeing the same thing... |
Did you upgrade your XCode (you should)? Also, do you have any custom GCC installed? |
I'll update XCode and retry. I'm using homebrew gcc. |
the homebrew gcc is probably the issue. I'd suggest using the default clang with updated XCode. Just tried it on a fresh el capitan machine (which had no torch installed ever), no issues. |
It indeed was the homebrew gcc. |
I updated OS X to El Capitan and XCode to 7.2 and I can't get itorch notebook to work. I believe the problem is that starting in El Capitan (System Integrity Protection, aka "rootless" ), users can't modify the
|
Oh! That really sucks on OSX's part. I'll have to prep a patch for this. Thanks for the heads-up |
@harrism didn't notice this, because apparently if you upgrade from a previous OSX, this thing is disabled for existing directories |
Hmmm, but I upgraded from a previous OS X... I guess maybe you mean if you upgrade OS X after installing Torch? |
@harrism I just did a fresh install of Torch on my El-Capitan laptop. ITorch seems to work fine. Can you give me the output of the following command?
I'm curious to see what the rpath is for the Qt libs on your machine. On mine, the Qt libs have full rpath, and qlua has no trouble finding them:
|
Mine is similar, but different:
|
@harrism if you notice, it's expecting libQtGui*dylib in the same directory as where qlua exists. Also, I suggest running:
and making sure there's no errors there. So suggested steps:
Let me know if that'll help, and sorry for the trouble so far. |
Hmmm, I have never installed Torch before this. (I tried the other day but
in order for Is it strange that your otool output has libedit and mine doesn't, but mine On Tue, Dec 29, 2015 at 4:27 PM Soumith Chintala [email protected]
|
That's weird. I'll find a fresh El Capitan system tomorrow and try it out. |
Also, the libedit / readline stuff is fine I think. I must've forgot to link my readline |
Yep, that works. If it works without qlua, then why does it fail when it's On Tue, Dec 29, 2015 at 6:10 PM Soumith Chintala [email protected]
|
qlua's linking on your machine is failing at something, I am not sure what, yet. |
Is it possible to redo the install without having to delete everything and On Tue, Dec 29, 2015 at 6:18 PM Soumith Chintala [email protected]
|
yea, |
Attaching an install log. On Tue, Dec 29, 2015 at 6:30 PM Soumith Chintala [email protected]
Prefix set to /Users/mharris/torch/install Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks -- The C compiler identification is AppleClang 7.0.2.7000181 cd build && make install -- The C compiler identification is AppleClang 7.0.2.7000181 cd build && make install Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks env MACOSX_DEPLOYMENT_TARGET=10.8 gcc -O2 -fPIC -I/Users/mharris/torch/install/include -c utils.c -o utils.o -- The C compiler identification is AppleClang 7.0.2.7000181 Updating manifest for /Users/mharris/torch/install/lib/luarocks/rocks -- The C compiler identification is AppleClang 7.0.2.7000181 cd build && make install -- The C compiler identification is AppleClang 7.0.2.7000181 cd build && make install -- The C compiler identification is AppleClang 7.0.2.7000181 cd build && make install -- The C compiler identification is AppleClang 7.0.2.7000181 cd build && make install -- The C compiler identification is AppleClang 7.0.2.7000181 |
Attaching from github. Email attachment seems to get inlined. |
Hi, @soumith, I just followed your instructions above to install Torch7. It succeeded on my Ubuntu machine but failed on my EI Capitan mac. It shows this error: Installing Lua version: LUAJIT21 Error: No results matching query were found. Error: No results matching query were found. Error: No results matching query were found. Error: Build error: Failed compiling object src/autolink.o I did some search and found that it may be caused by the root permission. So I typed sudo ./install.sh instead of ./install.sh. But new errors appeared as followed: Installing Lua version: LUAJIT21 Error: Build error: Failed compiling object src/lfs.o Missing dependencies for penlight: src/lfs.c:37:19: fatal error: errno.h: No such file or directory Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luafilesystem-1.6.3-1.src.rock - Build error: Failed compiling object src/lfs.o Error: Build error: Failed compiling object lua_cjson.o Error: Build error: Failed compiling object src/autolink.o Would you like to share some suggestions to solve this? Thank you in advance! |
@boyahao it's weird that on your machine there's no basic headers. I think it's because you use a custom gcc49, but you have not set your paths correctly. I suggest that you compile with clang that comes by default with XCode. |
@soumith it's true. I installed both clang and gcc49 on the machine. How can I set the compiler linked with clang? Do you know how to deal with this? : ) |
How was this issue resolved in the end? I'm having the same issue |
@1Reinier There's a workaround. torch/qtlua#21 @soumith I think it may be caused by https://github.com/torch/qtlua/blob/master/cmake/QtLuaPaths.cmake#L45 but I am not sure. The cmake file works fine on Ubuntu but on my mac it breaks too... |
@soumith have you tried installing torch with other compilers on el capitan. (i.e. llvm, intel-icc, clang-omp)? I'm trying to install with the intel compilers but I get the following errors:
Any help would be appreciated. I don't why it is looking for libluajit.dylib when you install for the first time that, that shouldn't be on your system unless you have luajit pre-installed. Are there any options or flags the I could use during compilation? |
@kirk86 i haven't. icc doesn't understand -image_base, a flag that is needed for LuaJIT on OSX: You can install Lua 5.2 instead, via: |
@soumith you're the man. I've been busting my head around all this time to overcome this error. Thanks a bunch. Are there any pros, cons I should be aware of between lua5.2 and luajit. For instance if luajit is faster than lua52 then I guess compiling with icc looses its point, since the whole issue was about gaining some speed. One last thing that I've experienced is an error regarding the demos on torch. This was about the digit classifier on mnist written by Clement if I'm not mistaken. In the options one can set the batchSize, every time that I set a different batchSize I get the following errors:
My wild guess would be something related to insufficient memory. I would expect a batchSize of 128 to be normal in this case or am I missing something? |
no pro / con with LuaJit. Just use Lua 5.2, it's great. That assertion states that the target indices given to the Criterion are more than nClasses. |
@soumith thanks so much for your help.
is that normal behaviour? |
@soumith thanks. What I did was to remove and make clean install from the beginning with icc. I looked closer at the output and it seems that there are some errors which may explain why the documentation is not working. It fails to compile qtlua, qttorch and some other dependencies. I'll provide here the output error in case that will be useful to dissect the problem.
|
Ok i can't really help there :) |
@soumith ok thanks for all the help, switched back to gcc... |
./install.sh
Prefix set to /Users/linkerlin/torch/install
Installing Lua version: LUAJIT21
Installing common Lua packages
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: Build error: Failed compiling module lfs.so
Missing dependencies for penlight:
luafilesystem
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: Failed installing dependency: https://raw.githubusercontent.com/rocks-moonscript-org/moonrocks-mirror/master/luafilesystem-1.6.3-1.src.rock - Build error: Failed compiling module lfs.so
The text was updated successfully, but these errors were encountered: