Giter VIP home page Giter VIP logo

Comments (16)

zltunes avatar zltunes commented on September 27, 2024

m1j3v ae qif466xl295y5i
如图,rbenv和openssl没问题,但执行rbenv install 2.1.2后一直build failed..

from rails10.

zltunes avatar zltunes commented on September 27, 2024

我系统里自带的是 ruby 1.9.3p484
是不是必须删除原有的?

from rails10.

happypeter avatar happypeter commented on September 27, 2024

这里有一个概念要明确,编译的时候需要 ssl 意思是需要 .so 库和对应的头文件,并不是你系统的 openssl 能用就一定也有这两个东西的。这是个通用的规律,不局限于 openssl 这一个包。

from rails10.

happypeter avatar happypeter commented on September 27, 2024

不是。

from rails10.

happypeter avatar happypeter commented on September 27, 2024

执行

dpkg -l|grep -i ssl

请把输出贴到这里

from rails10.

zltunes avatar zltunes commented on September 27, 2024

3v 3r0 8h yyji3st2f ut

from rails10.

happypeter avatar happypeter commented on September 27, 2024

我的输出

ii  libssl-dev:amd64                 1.0.1f-1ubuntu2.8             amd64        Secure Sockets Layer toolkit - development files

ii  libssl1.0.0:amd64                1.0.1f-1ubuntu2.8             amd64        Secure Sockets Layer toolkit - shared libraries

from rails10.

happypeter avatar happypeter commented on September 27, 2024

其中一个是 .so 库文件,libssl-dev 中是头文件。

你的貌似没有 libssl-dev

from rails10.

happypeter avatar happypeter commented on September 27, 2024
sudo apt-get install libssl-dev<tab>

装一下试试

from rails10.

zltunes avatar zltunes commented on September 27, 2024

e_omd0t94tdtov46cukt vf
出现了一开始安装那些库文件时报的错误,404Not Found

from rails10.

happypeter avatar happypeter commented on September 27, 2024

我这边安装成功了,完全按照文档的步骤。

Installed ruby-2.1.2 to /home/vagrant/.rbenv/versions/2.1.2

vagrant@vagrant-ubuntu-trusty-64:~$ rbenv global 2.1.2
vagrant@vagrant-ubuntu-trusty-64:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:    14.04
Codename:   trusty
vagrant@vagrant-ubuntu-trusty-64:~$

from rails10.

happypeter avatar happypeter commented on September 27, 2024

是 apt-get 又出了问题。我这边安装的

libssl-dev:amd64                 1.0.1f-1ubuntu2.8 

注意上面的小版本是 2.8,而你那里却是去服务器上找 2.7

所以找不到是情有可原的。具体原因 ... 我看看...

from rails10.

happypeter avatar happypeter commented on September 27, 2024

再执行一下

sudo apt-get update

然后再试试

不行的话那可能就没有办法了,就是你的系统有问题了,我原来是专门的包管理工程师,所以包管理系统出问题还是挺常见的,哈哈

这样,那就换我这个64位系统吧。你用的那个应该是32的镜像。http://happypeter.github.io/rails10/01_vagrant.html 这里的步骤操作就可以了

from rails10.

zltunes avatar zltunes commented on September 27, 2024

f_gnrq66zugeivy 3xbcj31
我的也是64位的。。心塞。。
我Ubuntu自带的是ruby1.9.3p484 我就用这个跟着您的课程做可以吗?

from rails10.

happypeter avatar happypeter commented on September 27, 2024

不确定,可以试试。

建议可以用文档上的步骤再试一次,我刚才刚弄的,安装是可以成功的。

from rails10.

zltunes avatar zltunes commented on September 27, 2024

好的,我再试试,非常感谢您!

from rails10.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.