리눅스에서 norminette설치할 때 cd ~/.norminette/ && bundler부분에서 아래의 오류를 뱉으면서 설치가 안될 때가 있다.
Fetching gem metadata from https://rubygems.org/...
Resolving dependencies...
Using amq-protocol 2.3.2
Using bundler 1.16.1
Fetching rbtree 0.4.4
Your user account isn't allowed to install to the system RubyGems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to RubyGems using sudo.
Password:
Installing rbtree 0.4.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /tmp/bundler20210709-6864-12vkukwrbtree-0.4.4/gems/rbtree-0.4.4
/usr/bin/ruby2.5 -r ./siteconf20210709-6864-1jbgjr7.rb extconf.rb
checking for rb_exec_recursive() in ruby.h... yes
checking for rb_exec_recursive_paired() in ruby.h... yes
checking for rb_proc_lambda_p() in ruby.h... yes
checking for rb_ary_resize() in ruby.h... yes
checking for rb_obj_hide() in ruby.h... yes
checking for rb_safe_level() in ruby.h... yes
creating Makefile
current directory: /tmp/bundler20210709-6864-12vkukwrbtree-0.4.4/gems/rbtree-0.4.4
make "DESTDIR=" clean
sh: 1: make: not found
current directory: /tmp/bundler20210709-6864-12vkukwrbtree-0.4.4/gems/rbtree-0.4.4
make "DESTDIR="
sh: 1: make: not found
make failed, exit code 127
Gem files will remain installed in /tmp/bundler20210709-6864-12vkukwrbtree-0.4.4/gems/rbtree-0.4.4 for inspection.
Results logged to
/tmp/bundler20210709-6864-12vkukwrbtree-0.4.4/extensions/x86_64-linux/2.5.0/rbtree-0.4.4/gem_make.out
An error occurred while installing rbtree (0.4.4), and Bundler cannot continue.
Make sure that `gem install rbtree -v '0.4.4'` succeeds before bundling.
In Gemfile:
bunny was resolved to 2.19.0, which depends on
sorted_set was resolved to 1.0.3, which depends on
rbtree
이럴때는 아래 명령줄로 build-essential을 설치해주면 된다.
apt-get update && apt-get install -y build-essential
'개발 조각글' 카테고리의 다른 글
Unity 씬에서 선택한게 하이라키에서 안잡힐 때 (0) | 2022.03.21 |
---|---|
전처리 지시어를 사용해 모바일과 에디터에서 rayCast받기 (0) | 2022.03.07 |
linux상에서의 스택 제한 (0) | 2021.09.02 |
git id / pw 캐싱 (0) | 2021.07.27 |
mac에서 norminette설치가 안될 때 (0) | 2021.07.09 |