Comments (16)
如图,rbenv和openssl没问题,但执行rbenv install 2.1.2后一直build failed..
from rails10.
我系统里自带的是 ruby 1.9.3p484
是不是必须删除原有的?
from rails10.
这里有一个概念要明确,编译的时候需要 ssl 意思是需要 .so 库和对应的头文件,并不是你系统的 openssl 能用就一定也有这两个东西的。这是个通用的规律,不局限于 openssl 这一个包。
from rails10.
不是。
from rails10.
执行
dpkg -l|grep -i ssl
请把输出贴到这里
from rails10.
from rails10.
我的输出
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.
其中一个是 .so 库文件,libssl-dev 中是头文件。
你的貌似没有 libssl-dev
from rails10.
sudo apt-get install libssl-dev<tab>
装一下试试
from rails10.
出现了一开始安装那些库文件时报的错误,404Not Found
from rails10.
我这边安装成功了,完全按照文档的步骤。
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.
是 apt-get 又出了问题。我这边安装的
libssl-dev:amd64 1.0.1f-1ubuntu2.8
注意上面的小版本是 2.8,而你那里却是去服务器上找 2.7
所以找不到是情有可原的。具体原因 ... 我看看...
from rails10.
再执行一下
sudo apt-get update
然后再试试
不行的话那可能就没有办法了,就是你的系统有问题了,我原来是专门的包管理工程师,所以包管理系统出问题还是挺常见的,哈哈
这样,那就换我这个64位系统吧。你用的那个应该是32的镜像。http://happypeter.github.io/rails10/01_vagrant.html 这里的步骤操作就可以了
from rails10.
我的也是64位的。。心塞。。
我Ubuntu自带的是ruby1.9.3p484 我就用这个跟着您的课程做可以吗?
from rails10.
不确定,可以试试。
建议可以用文档上的步骤再试一次,我刚才刚弄的,安装是可以成功的。
from rails10.
好的,我再试试,非常感谢您!
from rails10.
Related Issues (20)
- 典型观众
- 课程总体风格 HOT 4
- 第一周:安装 ruby 和 rails HOT 2
- 第x周:部署项目
- active record HOT 2
- 第0周:课程介绍
- 课程项目开发 HOT 1
- ruby-china 请教贴 HOT 3
- 中级课程保留内容 HOT 1
- 开天词
- 部署吗? HOT 1
- route HOT 3
- vagrant
- ref HOT 1
- 静态页面 HOT 3
- http://ihower.tw/rails4/
- Code Beauty Path Path error HOT 1
- Code Beauty 建议补全update action的代码 HOT 2
- form_for HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails10.