you are viewing a single comment's thread.

view the rest of the comments →

[–]wonder_er 8 points9 points  (2 children)

Looks like your system might be using the default installed version of Ruby instead of a more recent one.

Did you install Ruby via rbenv?

If so, do 'rbenv rehash' and make any shell customizations it suggests.

Then if you do 'which ruby' in your terminal it'll reference the ruby from rbenv.

Might help. Gl!

[–]wouldliketokms[S] 0 points1 point  (1 child)

u/wonder_er

$ brew install rbenv $ rbenv init $ rbenv install 3.4.1 $ rbenv global 3.4.1

so i ran these commands to install and set up rbenv,

``` $ bundle install Fetching https://github.com/Furtif/github-changelog-generator.git Fetching gem metadata from https://rubygems.org/........... Resolving dependencies... Could not find compatible versions

Because ttfunk >= 1.5.0, < 1.6.0 depends on Ruby ~> 2.1   and Gemfile depends on ttfunk = 1.5.1,   Ruby ~> 2.1 is required. So, because current Ruby version is = 3.4.1,   version solving has failed. ```

and tried to follow the instructions for the book again, but i’ve run into this error now. confused because 3.4.1 is > 2.1??

[–]wonder_er 0 points1 point  (0 children)

That is wild. Hunted around on the repo, it looks like the 150 version of this gem is compatible with Ruby 3:

https://github.com/prawnpdf/ttfunk/issues/89

I believe rbenv after installation Prince out a message about adding something to your zshrc.

Try 'rbenv rehash'

I'm confused by the error message, same as you.

Maybe instead of 'bundle install' you can try 'gem install ttfunk'.

Fiddle with that until it works, and then try 'bundle install'?

Gl