-
Notifications
You must be signed in to change notification settings - Fork 31
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
torch.rb not installing on Ubuntu 23.04 w. 3.2.2 #43
Comments
Hi @jcasu, try these instructions (use |
I tried that 1st, but it didn't seem to do anything.
I unpacked the zip from pytorch.org & pointed bundle to the directory called libtorch.
Did the bundle command, and it returned immediately.
No gem installed (I should expect that, right?)
fwiw, on my mac, doing brew install pytorch & then gem install torch-rb works flawlessly. likewise w. installing all the other torch* gems
thanks
…-john
________________________________
From: Andrew Kane ***@***.***>
Sent: Saturday, July 29, 2023 11:07 AM
To: ankane/torch.rb ***@***.***>
Cc: john chiraldynamics.com ***@***.***>; Mention ***@***.***>
Subject: Re: [ankane/torch.rb] torch.rb not installing on Ubuntu 23.04 w. 3.2.2 (Issue #43)
Hi @jcasu<https://github.com/jcasu>, try these instructions<https://github.com/ankane/torch.rb#libtorch-installation> (use --with-torch-dir to specify the location). Note that the latest version requires LibTorch 2, while libtorch-dev provides 1.13.
—
Reply to this email directly, view it on GitHub<#43 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC4YUFXU3HN45ZPQ2D24G6DXSVGNNANCNFSM6AAAAAA24HEVCA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
You'll want to run |
ok...
tnx.
…________________________________
From: Andrew Kane ***@***.***>
Sent: Saturday, July 29, 2023 11:59 AM
To: ankane/torch.rb ***@***.***>
Cc: john chiraldynamics.com ***@***.***>; Mention ***@***.***>
Subject: Re: [ankane/torch.rb] torch.rb not installing on Ubuntu 23.04 w. 3.2.2 (Issue #43)
You'll want to run bundle install after setting bundle config.
—
Reply to this email directly, view it on GitHub<#43 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC4YUFWQEAH564LQIQNFZTLXSVMR5ANCNFSM6AAAAAA24HEVCA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
installed libtorch-dev, etc...
gem isn't finding libtorch (see below)
any pointers would be helpful.
tnx
john@enterprise:~$ gem install torch-rb
Building native extensions. This could take a while...
ERROR: Error installing torch-rb:
ERROR: Failed to build gem native extension.
/home/john/.rbenv/versions/3.2.2/bin/ruby extconf.rb
checking for rice/rice.hpp in /home/john/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/rice-4.1.0/include... yes
checking for -lstdc++... yes
LibTorch not found
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
The text was updated successfully, but these errors were encountered: