Setup Ubuntu 22.04 Jammy Jellyfish Discussion
sudo apt install postgresql-11 libpq-dev
for Ubuntu 24.04 it will be:
sudo apt install postgresql-14 libpq-dev
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.
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'
generate'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/generator/ri.rb:26:in
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:530:in block in generate'
chdir'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:525:in
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:525:in generate'
document'
/tmp/ruby-build.20221104215004.184360.GNHouR/ruby-2.2.10/lib/rdoc/rdoc.rb:508:in
./bin/rdoc:20:in `
make: *** [uncommon.mk:428: rdoc] Erro 1
HI could i please ask what should we modified for the PostgreSQL user /password in database.yml?
Thank you
after installing postgres you can start it on Ubuntu with the following:
sudo service postgresql start
❱ 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