Shopify / dashing

The exceptionally handsome dashboard framework in Ruby and Coffeescript.
http://shopify.github.com/dashing/
MIT License
10.97k stars 1.18k forks source link

Install dashing on Centos 7.2 #730

Closed ric79 closed 8 years ago

ric79 commented 8 years ago

Hello, here there is my error:

> cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
> sudo yum install ruby ruby-develop nodejs gcc
> sudo gem install bundler
> ruby --version
ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
>sudo gem install dashing
Building native extensions.  This could take a while...
ERROR:  Error installing dashing:
        ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
checking for main() in -lcrypto... no
checking for main() in -lcrypto... no
checking for main() in -lcrypto... no
checking for main() in -lcrypto... no
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for pipe2() in unistd.h... yes
checking for accept4() in sys/socket.h... yes
checking for SOCK_CLOEXEC in sys/socket.h... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
checking for clock_gettime()... yes
checking for CLOCK_MONOTONIC_RAW in time.h... yes
checking for CLOCK_MONOTONIC in time.h... yes
CXXFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic
creating Makefile

make "DESTDIR="
g++ -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_RB_THREAD_CALL_WITHOUT_GVL -DHAVE_RB_THREAD_FD_SELECT -DHAVE_TYPE_RB_FDSET_T -DHAVE_RB_WAIT_FOR_SINGLE_FD -DHAVE_RB_TIME_NEW -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_PIPE2 -DHAVE_ACCEPT4 -DHAVE_CONST_SOCK_CLOEXEC -DOS_UNIX -DHAVE_EPOLL_CREATE -DHAVE_EPOLL -DHAVE_CLOCK_GETTIME -DHAVE_CONST_CLOCK_MONOTONIC_RAW -DHAVE_CONST_CLOCK_MONOTONIC -I/usr/local/opt/openssl/include -I/opt/local/include -I/usr/local/include    -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -mtune=generic -m64 -o binder.o -c binder.cpp
make: g++: Command not found
make: *** [binder.o] Error 127

Gem files will remain installed in /usr/local/share/gems/gems/eventmachine-1.2.0.1 for inspection.
Results logged to /usr/local/share/gems/gems/eventmachine-1.2.0.1/ext/gem_make.out

R

Litwilly commented 8 years ago

I'm not sure if ruby-develop is a valid package. It should be:

yum install ruby-devel

ric79 commented 8 years ago
> sudo yum install ruby-devel
Package ruby-devel-2.0.0.598-25.el7_1.x86_64 already installed and latest version
Nothing to do

It can be something related to Ruby Version?

ruby 2.0.0p598 (2014-11-13) [x86_64-linux]
ric79 commented 8 years ago
> curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
> \curl -sSL https://get.rvm.io | bash -s stable
> rvm install ruby-2.2.1
> ruby --version
  ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
> gem install dashing

OK