Welcome, I’m trying to install Gitlab GDK but I meet an issue with thrift 0.16.0
with error below:
bin/gdk install
Notice: Behaving like ASDF_GOLANG_MOD_VERSION_ENABLED=true
In the future this will have to be set to continue
reading from the go.mod and go.work files
--------------------------------------------------------------------------------
Setting up Ruby bundler
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Installing gitlab-org/gitlab Ruby gems
--------------------------------------------------------------------------------
Bundle check failed. Installing gems using bundle install...
Fetching gem metadata from https://rubygems.org/.......
Installing thrift 0.16.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/thrift-0.16.0/ext
/Users/wpplumber/.asdf/installs/ruby/3.1.4/bin/ruby -I
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0 extconf.rb
checking for strlcpy() in string.h... *** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/wpplumber/.asdf/installs/ruby/3.1.4/bin/$(RUBY_BASE_NAME)
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:490:in
`try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:583:in
`try_link0'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:601:in
`try_link'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:812:in
`try_func'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:1116:in
`block in have_func'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:989:in
`block in checking_for'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:354:in
`block (2 levels) in postpone'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:324:in
`open'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:354:in
`block in postpone'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:324:in
`open'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:350:in
`postpone'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:988:in
`checking_for'
from /Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/mkmf.rb:1115:in
`have_func'
from extconf.rb:31:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/extensions/x86_64-darwin-19/3.1.0/thrift-0.16.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/thrift-0.16.0
for inspection.
Results logged to
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/extensions/x86_64-darwin-19/3.1.0/thrift-0.16.0/gem_make.out
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/ext/builder.rb:102:in
`run'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/ext/ext_conf_builder.rb:28:in
`build'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/ext/builder.rb:171:in
`build_extension'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/ext/builder.rb:205:in
`block in build_extensions'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/ext/builder.rb:202:in
`each'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/ext/builder.rb:202:in
`build_extensions'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/3.1.0/rubygems/installer.rb:843:in
`build_extensions'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/rubygems_gem_installer.rb:72:in
`build_extensions'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/rubygems_gem_installer.rb:28:in
`install'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/source/rubygems.rb:203:in
`install'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/installer/gem_installer.rb:54:in
`install'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/installer/parallel_installer.rb:130:in
`do_install'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/installer/parallel_installer.rb:121:in
`block in worker_pool'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/worker.rb:62:in
`apply_func'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/worker.rb:57:in
`block in process_queue'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/worker.rb:54:in
`loop'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/worker.rb:54:in
`process_queue'
/Users/wpplumber/.asdf/installs/ruby/3.1.4/lib/ruby/gems/3.1.0/gems/bundler-2.4.21/lib/bundler/worker.rb:90:in
`block (2 levels) in create_threads'
An error occurred while installing thrift (0.16.0), and Bundler cannot continue.
In Gemfile:
gitlab-labkit was resolved to 0.34.0, which depends on
jaeger-client was resolved to 1.1.0, which depends on
thrift
make: *** [.gitlab-bundle] Error 5
❌️ ERROR: Failed to install.
-------------------------------------------------------
You can try the following that may be of assistance:
- Run 'gdk doctor'.
- Visit the troubleshooting documentation:
https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/troubleshooting/index.md.
- Visit https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues to
see if there are known issues.
- Run 'gdk reset-data' if appropriate.
- Run 'gdk pristine' which will restore your GDK to a pristine state.
-------------------------------------------------------