Closed jcasu closed 1 year ago
Hi @jcasu, try these instructions (use --with-torch-dir
to specify the location). Note that the latest version requires LibTorch 2, while libtorch-dev
provides 1.13.
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 @jcasuhttps://github.com/jcasu, try these instructionshttps://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 GitHubhttps://github.com/ankane/torch.rb/issues/43#issuecomment-1656809429, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC4YUFXU3HN45ZPQ2D24G6DXSVGNNANCNFSM6AAAAAA24HEVCA. You are receiving this because you were mentioned.Message ID: @.***>
You'll want to run bundle install
after setting bundle config
.
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 GitHubhttps://github.com/ankane/torch.rb/issues/43#issuecomment-1656838170, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC4YUFWQEAH564LQIQNFZTLXSVMR5ANCNFSM6AAAAAA24HEVCA. You are receiving this because you were mentioned.Message ID: @.***>
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.