adnjoo / xtrack

🫠
https://xtrack.ing
0 stars 0 forks source link

devops: fix .ruby-version on droplet #357

Closed adnjoo closed 1 month ago

adnjoo commented 1 month ago
rails@rails:~/apps/xtrack/api$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 13.2.1
Installing rake 13.2.1
Fetching bigdecimal 3.1.8
Installing bigdecimal 3.1.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/share/rvm/gems/ruby-3.3.4/gems/bigdecimal-3.1.8/ext/bigdecimal
/usr/share/rvm/rubies/ruby-3.3.4/bin/ruby extconf.rb
checking for __builtin_clz()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
sudo apt-get update
sudo apt-get install build-essential libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev
adnjoo commented 1 month ago
sudo apt-get install clang

CC=clang bundle install