RLm36
One Level
- 18.08.2021
- 39
- 0
Сегодня ночью хочу спросить форум: как решить проблему с установкой
Заходим в терминал:
Два дня сижу в гугле не могу найти ответ, помогите.
P.S.
rlm36@Manjaro-Linux
-------------------
OS: Manjaro Linux x86_64
Kernel: 5.15.7-1-MANJARO
Uptime: 3 hours, 13 mins
Packages: 981 (pacman), 23 (flatpak), 4 (snap)
Shell: bash 5.1.12
Resolution: 1680x1050
DE: Xfce 4.16
WM: Xfwm4
CPU: Intel Core 2 Quad Q6600 (4) @ 2.403GHz
GPU: NVIDIA GeForce GTX 650
Memory: 2289MiB / 3923MiB
discrodrb
я уже два дня не могу создать бота для дс из-за этой проблемы.Заходим в терминал:
su ---> pacman -S ruby ---> gem install dev-tools dev-tools base ---> 2 gem installed ----> gem install discordrb ===>
Код:
Building native extensions. This could take a while...
ERROR: Error installing discordrb:
ERROR: Failed to build gem native extension.
current directory: /root/.local/share/gem/ruby/3.0.0/gems/unf_ext-0.0.8/ext/unf_ext
/usr/bin/ruby -I /usr/lib/ruby/3.0.0 -r ./siteconf20211224-20857-9fvnd9.rb extconf.rb
checking for -lstdc++... *** 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=/usr/bin/$(RUBY_BASE_NAME)
--with-static-libstdc++
--without-static-libstdc++
--with-stdc++-dir
--without-stdc++-dir
--with-stdc++-include
--without-stdc++-include=${stdc++-dir}/include
--with-stdc++-lib
--without-stdc++-lib=${stdc++-dir}/lib
--with-stdc++lib
--without-stdc++lib
/usr/lib/ruby/3.0.0/mkmf.rb:471:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/3.0.0/mkmf.rb:564:in `try_link0'
from /usr/lib/ruby/3.0.0/mkmf.rb:582:in `try_link'
from /usr/lib/ruby/3.0.0/mkmf.rb:801:in `try_func'
from /usr/lib/ruby/3.0.0/mkmf.rb:1029:in `block in have_library'
from /usr/lib/ruby/3.0.0/mkmf.rb:971:in `block in checking_for'
from /usr/lib/ruby/3.0.0/mkmf.rb:361:in `block (2 levels) in postpone'
from /usr/lib/ruby/3.0.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/3.0.0/mkmf.rb:361:in `block in postpone'
from /usr/lib/ruby/3.0.0/mkmf.rb:331:in `open'
from /usr/lib/ruby/3.0.0/mkmf.rb:357:in `postpone'
from /usr/lib/ruby/3.0.0/mkmf.rb:970:in `checking_for'
from /usr/lib/ruby/3.0.0/mkmf.rb:1024:in `have_library'
from extconf.rb:6:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/root/.local/share/gem/ruby/3.0.0/extensions/x86_64-linux/3.0.0/unf_ext-0.0.8/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /root/.local/share/gem/ruby/3.0.0/gems/unf_ext-0.0.8 for inspection.
Results logged to /root/.local/share/gem/ruby/3.0.0/extensions/x86_64-linux/3.0.0/unf_ext-0.0.8/gem_make.out
Два дня сижу в гугле не могу найти ответ, помогите.
P.S.
rlm36@Manjaro-Linux
-------------------
OS: Manjaro Linux x86_64
Kernel: 5.15.7-1-MANJARO
Uptime: 3 hours, 13 mins
Packages: 981 (pacman), 23 (flatpak), 4 (snap)
Shell: bash 5.1.12
Resolution: 1680x1050
DE: Xfce 4.16
WM: Xfwm4
CPU: Intel Core 2 Quad Q6600 (4) @ 2.403GHz
GPU: NVIDIA GeForce GTX 650
Memory: 2289MiB / 3923MiB