DFE-Digital / rails-template

Rails 7 template with GOV.UK Frontend
27 stars 5 forks source link

asdf install fails in sample app #28

Open oimediaDev opened 11 months ago

oimediaDev commented 11 months ago

I am running the project on an M1 Mac

trying to build a sample project I get build error

"checking for library containing clock_gettime... none required checking for library containing fdatasync... none required checking for library containing sched_yield... none required checking for library containing gethostbyname_r... no checking for library containing shmget... none required checking for library containing backtrace_symbols... none required checking for library containing readline... -lreadline checking for inflate in -lz... yes checking for CRYPTO_new_ex_data in -lcrypto... no configure: error: library 'crypto' is required for OpenSSL"

openSSL is installed as far as I can see

peteryates commented 9 months ago

Thanks for reporting @oimediaDev, afraid I missed this until just now.

Did you make any progress?

Do you know which of the tools asdf is installing causes the problem?

If you run asdf plugin list it will show the enabled plugins, and asdf list will show the versions of each tool you have. Manually stepping through main/templates/asdf.rb and running the commands on their own might shed more light on what's going on.

Based on my Googling (and not having a mac to test on) my suspicion would be that it's PostgreSQL causing the problems, as there are lots of threads outlining how to manually specify where certain libraries are. If this is the case I'd recommend manually installing Ruby, Node and Yarn with asdf and using Postgres.app or installing it via Homebrew.

Hope that helps!