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

bin/configure assumes Debian based system #1435

Closed
coder2000 opened this issue Apr 27, 2024 · 6 comments · Fixed by #1478
Closed

bin/configure assumes Debian based system #1435

coder2000 opened this issue Apr 27, 2024 · 6 comments · Fixed by #1478

Comments

@coder2000
Copy link

I use Arch Linux so my package manager is pacman or yay if I need to use something from AUR. The configure script as provided by the repo assumes that dpkg is available wants to install postgresql and redis system wide. While that isn't an issue in and of itself I prefer to use docker to run them on a per project basis if needed.

@coder2000
Copy link
Author

Splitting it up didn't resolve the issue. The issue is that the scripts rely primarily on dpkg and apt-get which are only available on Debian and derivatives.

@jagthedrummer
Copy link
Contributor

@coder2000 Can you please post a stack trace or some details about whatever problem you ran into? The new scripts no longer rely on dpkg or apt-get for detecting postgres or redis. It should attempt to use dpkg for detecting icu4c but if your system doesn't have dpkg it should just tell you that it knows you don't have dpkg and then it should suggest that you ensure that icu4c is installed.

else
puts "You don't have dpkg, so we can't tell if `icu4c` is installed.".red
puts "Please make sure that `icu4c` is installed.".yellow
end

What exactly are you seeing?

@coder2000
Copy link
Author

Ok. Sorry, I missed that part of the script.

@jagthedrummer
Copy link
Contributor

@coder2000 if it gives you any problems please report back with some details. We definitely want to make this as smooth as possible.

@BRGustavoRibeiro
Copy link

BRGustavoRibeiro commented Jul 19, 2024

Hi! Same problem here on Fedora 40 Sway.

  • dpkg is installed through brew.
  • libicu installed on system.
  • icu4c installed through brew.

I honestly have no idea how to fix this.

You don't have dpkg, so we can't tell if icu4c is installed.

--

bin/setup fails on:

== Preparing database ==
bin/rails aborted!
LoadError: /lib64/libldap.so.2: undefined symbol: EVP_md2, version OPENSSL_3.0.0 - /home/MYUSER/.rbenv/versions/3.3.3/lib/ruby/gems/3.3.0/gems/pg-1.5.6/lib/pg_ext.so (LoadError)
<internal:/home/MYUSER/.rbenv/versions/3.3.3/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/MYUSER/.rbenv/versions/3.3.3/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/MYUSER/.local/share/gem/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
/home/MYUSER/APPFOLDER/config/application.rb:8:in `<main>'
/home/MYUSER/APPFOLDER/Rakefile:4:in `require_relative'
/home/MYUSER/APPFOLDER/Rakefile:4:in `<main>'
<internal:/home/MYUSER/.rbenv/versions/3.3.3/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
<internal:/home/MYUSER/.rbenv/versions/3.3.3/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
/home/MYUSER/.local/share/gem/ruby/3.3.0/gems/bootsnap-1.18.3/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:30:in `require'
bin/rails:4:in `<main>'
(See full trace by running task with --trace)

@pushcx
Copy link

pushcx commented Sep 28, 2024

Here’s the last couple dozen lines of bin/setup crashing on Arch:

--------------------------------------------------------------------------------
Checking PostgreSQL

You have PostgreSQL installed, but you're using v16.3 and not v14.
Try proceeding without PostgreSQL 14? [Y/n]

Continuing with PostgreSQL v16.3. This might cause problems in the next steps.


--------------------------------------------------------------------------------
Checking Redis


You have redis 7.2.5 installed.


--------------------------------------------------------------------------------
Checking icu4c


/home/pushcx/code/bt/bin/setup-scripts/check_icu.rb:53:in ``': No such file or directory - dpkg (Errno::ENOENT)
        from /home/pushcx/code/bt/bin/setup-scripts/check_icu.rb:53:in `<top (required)>'
        from <internal:/opt/rbenv/versions/3.3.4/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:/opt/rbenv/versions/3.3.4/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from bin/setup:33:in `block in <main>'
        from /opt/rbenv/versions/3.3.4/lib/ruby/3.3.0/fileutils.rb:240:in `chdir'
        from /opt/rbenv/versions/3.3.4/lib/ruby/3.3.0/fileutils.rb:240:in `cd'
        from bin/setup:16:in `<main>'

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

Successfully merging a pull request may close this issue.

4 participants