gpt4 book ai didi

ruby - gem 安装错误

转载 作者:数据小太阳 更新时间:2023-10-29 08:14:27 26 4
gpt4 key购买 nike

不会安装此 gem,但我收到此响应。

greg@greg-VirtualBox:~$ gem install tweetstream
Building native extensions. This could take a while...
ERROR: Error installing tweetstream:
ERROR: Failed to build gem native extension.

/home/greg/.rvm/rubies/ruby-1.9.3-p362/bin/ruby extconf.rb
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... yes
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile

make
compiling ssl.cpp
make: g++: Command not found
make: *** [ssl.o] Error 127


Gem files will remain installed in /home/greg/.rvm/gems/ruby-1.9.3- p362/gems/eventmachine-1.0.3 for inspection.
Results logged to /home/greg/.rvm/gems/ruby-1.9.3-p362/gems/eventmachine- 1.0.3/ext/gem_make.out

最佳答案

make: g++: Command not found Reading the output should is something that you should learn to do. Especially when things aren't going as planned.

取决于您的 Linux 风格。使用包管理器并安装 gcc 包。

Arch Linux:pacman -Syu gcc

Ubuntu/Debian/Mint:apt-get install gcc(您可能还需要安装build-essential)

Fedora:yum install gcc gcc-c++yum groupinstall "Development Tools"(适用于所有开发工具)

安装编译器后重新运行 gem 安装,除非您缺少其他依赖项,否则应该没问题

关于ruby - gem 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15317989/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com