shoes4 icon indicating copy to clipboard operation
shoes4 copied to clipboard

Cannot install Ruby Shoes 4

Open Dassadar2 opened this issue 3 years ago • 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

Dassadar2 avatar Jan 29 '22 22:01 Dassadar2

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.

ccoupe avatar Jan 30 '22 00:01 ccoupe

Hu Cecil,

So sad to hear that... what happened?

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?

Else would you have some recommandation or guide to migrate to another Ruby interface?

David

⁣Télécharger BlueMail pour Android ​

Le 30 janv. 2022, 01:11, à 01:11, Cecil Coupe @.***> a écrit:

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.

-- Reply to this email directly or view it on GitHub: https://github.com/shoes/shoes4/issues/1583#issuecomment-1025012447 You are receiving this because you authored the thread.

Message ID: @.***>

Dassadar2 avatar Jan 30 '22 03:01 Dassadar2

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.

ccoupe avatar Jan 31 '22 02:01 ccoupe

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.

PragTob avatar Jan 31 '22 21:01 PragTob

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

alx3dev avatar Feb 04 '22 01:02 alx3dev

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 avatar Mar 13 '22 15:03 Dassadar2

@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>

alx3dev avatar Mar 14 '22 09:03 alx3dev

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 avatar Mar 15 '22 21:03 Dassadar2

@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

alx3dev avatar Mar 15 '22 22:03 alx3dev

yes, that's where I am getting this error: Failed to find gems ["jruby-launcher"] = 1.1.19 :-/

Dassadar2 avatar Mar 16 '22 09:03 Dassadar2

@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.

alx3dev avatar Mar 18 '22 20:03 alx3dev

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

Dassadar2 avatar Mar 26 '22 20:03 Dassadar2

Hi, any idea please? ;-)

Dassadar2 avatar Apr 23 '22 15:04 Dassadar2

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.

rubyFeedback avatar Dec 02 '23 17:12 rubyFeedback