相关疑难解决方法(0)

错误通过Bundler安装mysql2 gem

我试图mysql2通过Bundler 安装gem,但它一直死于以下错误:

** executing command
/home/cc_rails/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems/installer.rb:483:in 'rescue in block in build_extensions': 
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/home/cc_rails/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb --with-mysql-config=/usr/bin/mysql_config
checking for rb_thread_blocking_region()... yes
checking for mysql.h... no
checking for mysql/mysql.h... no

-----
mysql.h is missing.  please check your installation of mysql and try again.
-----

*** 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 …
Run Code Online (Sandbox Code Playgroud)

ruby mysql rubygems ruby-on-rails bundler

61
推荐指数
4
解决办法
4万
查看次数

gitlab6.0,错误连接被拒绝 - 连接(2)(Errno :: ECONNREFUSED)

我安装了gitlab

我在阅读后安装了gitlab

我在浏览器的gitlab上创建了存储库,
我设置了~/.ssh/config,
然后
$ git push origin master

我得到了Erorr

/usr/local/lib/ruby/2.0.0/net/http.rb:878:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /usr/local/lib/ruby/2.0.0/net/http.rb:878:in `open'
    from /usr/local/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
    from /usr/local/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
    from /usr/local/lib/ruby/2.0.0/net/http.rb:877:in `connect'
    from /usr/local/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
    from /usr/local/lib/ruby/2.0.0/net/http.rb:851:in `start'
    from /home/git/gitlab-shell/lib/gitlab_net.rb:62:in `get'
    from /home/git/gitlab-shell/lib/gitlab_net.rb:17:in `allowed?'
    from /home/git/gitlab-shell/lib/gitlab_shell.rb:60:in `validate_access'
    from /home/git/gitlab-shell/lib/gitlab_shell.rb:23:in `exec'
    from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository …
Run Code Online (Sandbox Code Playgroud)

git ssh ruby-on-rails gitlab

5
推荐指数
1
解决办法
9569
查看次数

标签 统计

ruby-on-rails ×2

bundler ×1

git ×1

gitlab ×1

mysql ×1

ruby ×1

rubygems ×1

ssh ×1