-
Notifications
You must be signed in to change notification settings - Fork 29
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
Issue with iruby while using asdf-vm as the version manager? #318
Comments
@Ashvith I'm not using asdf but I encountered essentially the same error:
A quick workaround for this that worked for me was changing Line 130 in e7403dc
But then in the latest master this file is nonexistent (deleted in #317 by @mrkn) so maybe this issue is nonexistent/fixed there? In which case I guess we are yearning for a new release 😄 |
@tomonacci this makes sense because I remember that iruby was working quite fine before I reinstalled Fedora OS . So I think that maybe I'll try installing the old version for now. Also, iruby works when I launch jupyter-notebook and switch kernel to Ruby. So definitely, a commit probably broke this. |
@Ashvith iruby 7.4 appears to call the ipython console command here. Lines 123 to 130 in e7403dc
I guess @tomonacci was able to call Recently, @mrkn rewrote the However, in my opinion, it is not recommended to use iruby commands except when installing iruby, i.e. @Ashvith
|
@kojix2 specific_install fails to install iruby: ERROR: While executing gem ... (Gem::Ext::BuildError)
ERROR: Failed to build gem native extension.
current directory: /home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/iruby-0.7.4/ext
/home/ashvith/.asdf/installs/ruby/3.1.1/bin/ruby -I/home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/3.1.0 -rrubygems /home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=/home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/iruby-0.7.4 RUBYLIBDIR\=/home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/iruby-0.7.4
rake failedNo such file or directory - /home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/iruby-0.7.4/ext
Gem files will remain installed in /home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/gems/iruby-0.7.4 for inspection.
Results logged to /home/ashvith/.asdf/installs/ruby/3.1.1/lib/ruby/gems/3.1.0/extensions/x86_64-linux/3.1.0/iruby-0.7.4/gem_make.out Currently, I am satisfied with using the Jupyter/VSCode frontend. |
The error says that the Native extension failed to build. However, iruby does not actually use the C extension. This is native-package-installer. IRuby is working even though the automatic installation of ZeroMQ had failed. So ZeroMQ must have been installed successfully before. Finally, can you tell us about your environment? Are you using it on a server? Are you using it on a local computer, what is your operating system, what is the version of your operating system? |
Sorry for the late reply. I'm using Fedora Workstation on my laptop. I'm on the latest version, which is version 35. I have not done any changes to the shell environment, except for setting up asdf. |
I tried Fedora35 with docker and couldn't figure out why. git clone https://github.com/SciRuby/iruby
cd iruby
rake install The specific_install command didn't work. But the error was not output, the command itself did not work. [root@df081ce63b72 /]# gem specific_install
ERROR: While executing gem ... (Gem::CommandLineError)
Unknown command specific_install The reason I asked about OS and environment was because I suspected it might be an environment where native-package-installer wouldn't work, but that doesn't seem to be the case. If there are no other issues, please close it. |
I get this error while installing iruby in asdf:
Tried installing without the --user-install flag, but then it does not work properly:
The text was updated successfully, but these errors were encountered: