Installing Torch7 on Mac OS X

1,899 views
Skip to first unread message

Tyler Brough

unread,
Apr 26, 2014, 9:48:30 PM4/26/14
to tor...@googlegroups.com
I am trying to install torch7 on a mac.  I have tried both the "two line method" using curl and by installing lua, luajit, and luarocks first and then trying to install it by luarocks. Nothing is working.  

For example, I get:

$ sudo luarocks --server=https://raw.github.com/torch/rocks/master install torch

Warning: Failed searching manifest: Failed loading manifest: Failed extracting manifest file

Error: No results matching query were found.

Any suggestions.  Torch7 looks great.  I really want to try it out!

Thanks,

TJB

soumith

unread,
Apr 26, 2014, 10:45:23 PM4/26/14
to torch7 on behalf of Tyler Brough
first point, on OSX you dont need sudo

second, could you tell us what the errors you get when you do the two-line method? It works great on all the macs I've tried.

if you could paste the output of the two line-method over here, i can help you debug whats wrong.


--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.

Tyler Brough

unread,
Apr 26, 2014, 10:48:52 PM4/26/14
to tor...@googlegroups.com

Tyler Brough

unread,
Apr 27, 2014, 12:11:31 AM4/27/14
to tor...@googlegroups.com
Thank you very much for your response. When I use the two-line method I don't get any errors. I get nothing. But when I check for torch it has not been installed. 

I'm puzzled. 

Thanks,

TJB

soumith

unread,
Apr 27, 2014, 2:14:04 AM4/27/14
to torch7 on behalf of Tyler Brough
are you trying to run torch with the command:
luajit -ltorch

?

That's how you should.
Either that, or using
th


--

Tyler Brough

unread,
Apr 27, 2014, 10:36:42 AM4/27/14
to tor...@googlegroups.com
I have tried that. This is the error that I get when I do:

$ luajit -ltorch
luajit: module 'torch' not found:
no field package.preload['torch']
no file './torch.lua'
no file '/usr/local/share/luajit-2.0.2/torch.lua'
no file '/usr/local/share/lua/5.1/torch.lua'
no file '/usr/local/share/lua/5.1/torch/init.lua'
no file './torch.so'
no file '/usr/local/lib/lua/5.1/torch.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: at 0x010877f0d0
[C]: at 0x0108720a50

Any thoughts?

On Sunday, April 27, 2014 12:14:04 AM UTC-6, smth chntla wrote:
are you trying to run torch with the command:
luajit -ltorch

?

That's how you should.
Either that, or using
th

soumith

unread,
Apr 27, 2014, 11:27:45 AM4/27/14
to torch7 on behalf of Tyler Brough
can you send me the output for this command? The output will all be piped to out.txt, just send me the out.txt either as an email attachment or as a gist.

curl -s https://raw.github.com/torch/ezinstall/master/install-luajit+torch | bash >out.txt 2>&1

Tyler Brough

unread,
Apr 27, 2014, 11:42:41 AM4/27/14
to tor...@googlegroups.com
Here it is.  It is just an empty file. Nothing happens. Thanks so much for your help!

TJB

soumith

unread,
Apr 27, 2014, 12:16:55 PM4/27/14
to torch7 on behalf of Tyler Brough
that is weird, i'm not sure why nothing happens. i dont know whats going on, but looks like the script is not even running.

Saeed

unread,
Apr 28, 2014, 3:21:18 AM4/28/14
to tor...@googlegroups.com
Try this:

$ wget --no-check-certificate https://raw.github.com/torch/ezinstall/master/install-luajit+torch

and then:

$ bash install-luajit+torch





On Monday, April 28, 2014 12:16:55 AM UTC+8, smth chntla wrote:
that is weird, i'm not sure why nothing happens. i dont know whats going on, but looks like the script is not even running.

Tyler Brough

unread,
Apr 28, 2014, 12:47:11 PM4/28/14
to tor...@googlegroups.com


On Saturday, April 26, 2014 7:48:30 PM UTC-6, Tyler Brough wrote:

Tyler Brough

unread,
Apr 28, 2014, 12:52:06 PM4/28/14
to tor...@googlegroups.com
Ah, now I am getting an error message:
wget: unrecognized option `--no-check-certificate'
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

Any thoughts or suggestions?

Thanks!

TJB

soumith

unread,
Apr 28, 2014, 12:59:11 PM4/28/14
to torch7 on behalf of Tyler Brough
try the two new commands on the website. they were updated in the morning.

Tyler Brough

unread,
Apr 28, 2014, 6:30:06 PM4/28/14
to tor...@googlegroups.com
Yes! That worked.  Except torch-rocks doesn't seem to have been installed. Hmm?  Thoughts?  

Thanks so much!  I'm excited to try torch for my econometric computing problems.

TJB


On Monday, April 28, 2014 10:59:11 AM UTC-6, smth chntla wrote:
try the two new commands on the website. they were updated in the morning.

soumith

unread,
Apr 28, 2014, 6:41:14 PM4/28/14
to torch7 on behalf of Tyler Brough
We've moved to vanilla luajit, so you can install packages with luarocks, there is no specialized torch-rocks.

$ luarocks list
Reply all
Reply to author
Forward
0 new messages