Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup Ubuntu 22.04 Jammy Jellyfish Discussion

Chris Oliver asked in General

sudo apt install postgresql-11 libpq-dev

for Ubuntu 24.04 it will be:

sudo apt install postgresql-14 libpq-dev

Reply

Sure. In 22.04 Jammy (NOT 24.04 as you wrote), need
postgresql-14

Reply

Installing 2.7.6 fails due to default openssl version being 3.0.2 and ruby build does not support that (yet). A workaround is to install an openssl 1.1 version in a custom directory and exporting RUBY_CONFIGURE_OPTS='--with-openssl-dir=/path/to/your/openssl-1.1'. Then 'rbenv install 2.7.6' works.

Reply

thankyou! its work

Reply

I'm having trouble installing ruby ​​2.2.10 on Pop Os 22.04 and Ubuntu 22.10
this error happens:

BUILD FAILED (Pop 22.04 using ruby-build 20221101-3-g971043c)

Inspect or clean up the working tree at /tmp/ruby-build.20221104215004.184360.GNHouR
Results logged to /tmp/ruby-build.20221104215004.184360.log

Last 10 log lines:
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/store.rb:748:in save'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/generator/ri.rb:26:in
generate'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:530:in block in generate'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:525:in
chdir'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:525:in generate'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:508:in
document'
./bin/rdoc:20:in `

'

make: *** [uncommon.mk:428: rdoc] Erro 1

Reply

HI could i please ask what should we modified for the PostgreSQL user /password in database.yml?
Thank you

Reply

it's resolved thank you!

Reply

after installing postgres you can start it on Ubuntu with the following:

sudo service postgresql start

Reply

❱ sudo -u postgres createuser me -s
could not change directory to "/home/me": Permission denied
❱ sudo -u postgres createuser dbuser -s
could not change directory to "/home/me": Permission denied

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.