Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

developer instructions for installing on ubuntu 24.04 #4228

Open
mtholder opened this issue Mar 4, 2025 · 6 comments
Open

developer instructions for installing on ubuntu 24.04 #4228

mtholder opened this issue Mar 4, 2025 · 6 comments
Labels
enhancement Suggest an improvement to an existing function.

Comments

@mtholder
Copy link

mtholder commented Mar 4, 2025

Feature or enhancement

I had to run sudo apt install postgis before bundle exec rake db:schema:load && bundle exec rake db:test:prepare in the instructions for 22.04 on https://docs.taxonworks.org/develop/Install/Development/Native/ubuntu_22_04.html#installation-instructions

Location

NA

Screenshot, napkin sketch of interface, or conceptual description

No response

Your role

No response

@mtholder mtholder added the enhancement Suggest an improvement to an existing function. label Mar 4, 2025
@mjy
Copy link
Member

mjy commented Mar 4, 2025

Thanks @mtholder . @LocoDelAssembly Does the sudo requirement make sense to you in this context?

@mtholder
Copy link
Author

mtholder commented Mar 4, 2025

just for reference the error message I had been getting was:

/home/mholder/.rvm/gems/ruby-3.3.6/bin/ruby_executable_hooks:22:in `<main>'

Caused by:
PG::FeatureNotSupported: ERROR:  extension "postgis" is not available (PG::FeatureNotSupported)
DETAIL:  Could not open extension control file "/usr/share/postgresql/17/extension/postgis.control": No such file or 
directory.
HINT:  The extension must first be installed on the system where PostgreSQL is running.

It's probably just a case of some extension being default in postgres 15 but not 17 (17 is easier to install on Ubuntu 24.04, so that is what I was running)

@LocoDelAssembly
Copy link
Contributor

apt-cache policy postgresql-17-postgis-3 <= Does it show installed?

@mtholder
Copy link
Author

mtholder commented Mar 4, 2025

It does now, but I didn't run the command before I ran the apt install command I mentioned above.
But apart from that issue (and my env variable breaking postgres), I was able to get taxonworks running without much trouble.

@LocoDelAssembly
Copy link
Contributor

Ah sorry, misread first post and assumed it was an ongoing problem. Well, certainly 15 does not have postgis by default, that is why postgresql-15-postgis-3 postgresql-15-postgis-3-scripts appears in apt install step.

I can confirm that 16 can be installed on Ubuntu 24.04 without having to use postgres apt source, and with your experience we now also know that 17 is the default version.

Not sure if Ubuntu 24.04 instructions should be default or if we should continue with version locking. In production and CI tests we are currently using 16.

@LocoDelAssembly
Copy link
Contributor

Additional note: 17 was released AFTER Ubuntu 24.04. That would mean it would have auto-upgraded from 16 to 17 if you installed postgres and postgis without specific versions before September 2024?

https://endoflife.date/postgresql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Suggest an improvement to an existing function.
Projects
None yet
Development

No branches or pull requests

3 participants