Cannot install Ruby Shoes 4
Dassadar2 opened this issue · 14 comments
Hello,
After doing all the installs written on the documentation, I have this problem:
~/Programs/shoes4$ sudo bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will
break this application for all non-root users on this machine.
Fetching https://github.com/shoes/furoshiki
Fetching gem metadata from https://rubygems.org/.........
Could not find gem 'pry-debugger-jruby x86_64-linux' in rubygems repository https://rubygems.org/ or
installed locally.
The source contains the following gems matching 'pry-debugger-jruby':
* pry-debugger-jruby-1.0.0-java
* pry-debugger-jruby-1.1.0-java
* pry-debugger-jruby-1.2.0-java
* pry-debugger-jruby-1.2.1-java
* pry-debugger-jruby-1.2.2-java
* pry-debugger-jruby-2.0.0-java
* pry-debugger-jruby-2.1.0-java
Can you please help?
Thanks in advance!
David
Lot's of possibilities but my best guess is pry wants a jruby version that doesn't match what Shoes provides. That is bad news because Shoes isn't going to be fixed - it's a dead project.
So sad to hear that... what happened?
Normal things happened. People moved on. There weren't enough developers with the skill, time and interest to form a self sustaining group. The last person moved on. IMO, there aren't that many developers for desktop applications and it's Javascript when they do. Ruby's time on the desktop is over.
I would like to be able to save all the work i did on it... is there no possibility to get a past working version even if it is shoes 3 please?
Shoes3: Git clone the shoes3 repo. Then build the Shoes you need. It's not that hard for Shoes 3 and Linux. Moderately hard for OSX. Royal pain in the ass for Windows. I still have the packaged installers they just aren't on the website for download or packaging.
Shoes4: Clone the repo. Shoes4 is mostly getting the correct jruby installed which is easy with RVM. Figuring out the launch is the next step. I don't remember the details but it's java like. @PragTob might appear and tell you how.
migrate to another Ruby interface.
There is nothing like Shoes. I used Tk with Python last year and it wasn't too difficult so look at Ruby/Tk - ignore the complaints about 'old school' widgets - those are not modern comments.
hey, this looks like no shoes issue gut an issue with installing pry-debugger under JRuby on your side. Now quite sure what exactlyu but pry-debugger-jruby x86_64-linux
looks weird but I might be wrong... ah wait you're trying to setup shoes4 itself.
It's weird. The dep might need an update or some fix. I would try throwing away the Gemfile.lock and just run a fresh bundle install. We haven't tested this with new JRuby versions in a looonnnggg while as Cecile is saying.
Ruby Shoes 4 work with JRuby-9.3.2.0
, installed with rbenv
on Linux Mint 20.
Don't run bundler as root, as message tell you. Follow the steps:
- Install rbenv
- Install JRuby with
rbenv install jruby-9.3.2.0
- clone shoes4 repo
git clone https://github.com/shoes/shoes4 && cd shoes4
- run
rbenv local jruby-9.3.2.0
- run
bundle install
- run any of samples to try it with
bin/shoes samples/simple_star.rb
Hi,
Thx, I am nearly there. The sample works, however shoes does not work if I am invoking it from a different place, and I am not getting why:
~/pCloudDrive/Warhammer/TILEA2.0$ ~/shoes4/bin/shoes
/home/dassadar/shoes4/bin/shoes: 5: cd: can't cd to ./bin
/home/dassadar/shoes4/bin/shoes: 9: bin/shoes-stub: not found
Thx!
David
@Dassadar2 when you open file bin/shoes
, here is what it says:
# This is NOT the primary shoes that's installed--just a helper for local
# development purposes
So I guess you should just call shoes
from anywhere on the system, if everything was installed correctly.
That will probably give you an error like this:
Ignoring jruby-launcher-1.1.19-java because its extensions are not built. Try: gem pristine jruby-launcher --version 1.1.19
Ignoring shoes-4.0.0.rc1 because its extensions are not built. Try: gem pristine shoes --version 4.0.0.rc1
Following that, install gems as it says, and you shall be able to run shoes from any directory with shoes <COMMAND>
Hi Aleksandar,
Thx. I tried but I got this:
$ gem pristine jruby-launcher --version 1.1.19
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["jruby-launcher"] = 1.1.19
What is the issue please?
@Dassadar2 you don't have gem jruby-launcher
, so run:
gem pristine jruby-launcher --version 1.1.19
gem pristine shoes --version 4.0.0.rc1
yes, that's where I am getting this error:
Failed to find gems ["jruby-launcher"] = 1.1.19
:-/
@Dassadar2 You probably used regular ruby, instead of jruby.
First set jruby
as ruby version with:
rbenv local jruby-9.3.2.0
Now run gem install for those gems.
Hello,
It worked for the jruby launcher, thanks.
But not for the second one:
$ gem pristine shoes --version 4.0.0.rc1
ERROR: While executing gem ... (Gem::Exception)
Failed to find gems ["shoes"] = 4.0.0.rc1
Hi, any idea please? ;-)
Perhaps you can transition into glimmer? Andy is very responsive on glimmer github - even if your use case may not be supported or possible right now, have a talk with him if you have time (or via glimmer github issue trackers). Glimmer is in many ways quite similar to shoes.