aptana stdio3 ruby on rails helloworld 错误处理记录

rake server
Could not find gem 'sqlite3 (>= 0) ruby' in the gems available on this machine.
Run `bundle install` to install missing gems.
cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Enter your password to install the bundled RubyGems to your system:
Using rake (10.1.0)
Using i18n (0.6.5)
Using multi_json (1.8.2)
Using activesupport (3.2.13)
Using builder (3.2.2)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.5.2)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using actionpack (3.2.13)
Using mime-types (1.25)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.38)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using bundler (1.3.5)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.1)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using coffee-rails (3.2.2)
Using jquery-rails (3.0.4)
Using rails (3.2.13)
Using sass (3.2.12)
Using sass-rails (3.2.6)
Installing sqlite3 (1.3.8)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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 options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby1.9.1
        --with-sqlite3-dir
        --without-sqlite3-dir
        --with-sqlite3-include
        --without-sqlite3-include=${sqlite3-dir}/include
        --with-sqlite3-lib
        --without-sqlite3-lib=${sqlite3-dir}/lib
        --enable-local
        --disable-local


Gem files will remain installed in /home/cqr/.bundler/tmp/7059/gems/sqlite3-1.3.8 for inspection.
Results logged to /home/cqr/.bundler/tmp/7059/gems/sqlite3-1.3.8/ext/sqlite3/gem_make.out

An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.

cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ sudo apt-get install libsqlite3-dev       //==>下载sqlite3所需要的库

正在读取软件包列表... 完成0%
正在分析软件包的依赖关系树       
正在读取状态信息... 完成         
建议安装的软件包:
  sqlite3-doc
下列【新】软件包将被安装:
  libsqlite3-dev
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
需要下载 512 kB 的软件包。
解压缩后会消耗掉 1,452 kB 的额外空间。
获取:1 http://cn.archive.ubuntu.com/ubuntu/ saucy/main libsqlite3-dev amd64 3.7.17-1ubuntu1 [512 kB]
下载 512 kB,耗时 1秒 (397 kB/s)              
Selecting previously unselected package libsqlite3-dev:amd64.
(正在读取数据库 ... 系统当前共安装有 171515 个文件和目录。)
正在解压缩 libsqlite3-dev:amd64 (从 .../libsqlite3-dev_3.7.17-1ubuntu1_amd64.deb) ...
正在设置 libsqlite3-dev:amd64 (3.7.17-1ubuntu1) ...
cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ bundle install
^Ccqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.0)
Using i18n (0.6.5)
Using multi_json (1.8.2)
Using activesupport (3.2.13)
Using builder (3.2.2)
Using activemodel (3.2.13)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.5.2)
Using rack-cache (1.2)
Using rack-test (0.6.2)
Using hike (1.2.3)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Using actionpack (3.2.13)
Using mime-types (1.25)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.38)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using bundler (1.3.5)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.8.1)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using coffee-rails (3.2.2)
Using jquery-rails (3.0.4)
Using rails (3.2.13)
Using sass (3.2.12)
Using sass-rails (3.2.6)
Installing sqlite3 (1.3.8)
Installing uglifier (2.3.0)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ rake server        //==>开启WEBrick,但是这个命令行未能成功
rake aborted!
Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes.
/var/lib/gems/1.9.1/gems/execjs-2.0.2/lib/execjs/runtimes.rb:51:in `autodetect'
/var/lib/gems/1.9.1/gems/execjs-2.0.2/lib/execjs.rb:5:in `<module:ExecJS>'
/var/lib/gems/1.9.1/gems/execjs-2.0.2/lib/execjs.rb:4:in `<top (required)>'
/var/lib/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'
/var/lib/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'
/var/lib/gems/1.9.1/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
/var/lib/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require'
/var/lib/gems/1.9.1/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `<top (required)>'
/home/cqr/Documents/Aptana Studio 3 Workspace/book/config/application.rb:7:in `<top (required)>'
/home/cqr/Documents/Aptana Studio 3 Workspace/book/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ sudo apt-get install nodejs        //==>安装js的运行环境
正在读取软件包列表... 完成0%
正在分析软件包的依赖关系树       
正在读取状态信息... 完成         
将会安装下列额外的软件包:
  libc-ares2 libv8-3.14.5
下列【新】软件包将被安装:
  libc-ares2 libv8-3.14.5 nodejs
升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 2 个软件包未被升级。
需要下载 2,541 kB 的软件包。
解压缩后会消耗掉 7,492 kB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://cn.archive.ubuntu.com/ubuntu/ saucy/main libc-ares2 amd64 1.10.0-2 [38.5 kB]
获取:2 http://cn.archive.ubuntu.com/ubuntu/ saucy/universe libv8-3.14.5 amd64 3.14.5.8-4 [1,560 kB]
获取:3 http://cn.archive.ubuntu.com/ubuntu/ saucy/universe nodejs amd64 0.10.15~dfsg1-4 [943 kB]
下载 2,541 kB,耗时 5秒 (458 kB/s)    
Selecting previously unselected package libc-ares2:amd64.
(正在读取数据库 ... 系统当前共安装有 171525 个文件和目录。)
正在解压缩 libc-ares2:amd64 (从 .../libc-ares2_1.10.0-2_amd64.deb) ...
Selecting previously unselected package libv8-3.14.5.
正在解压缩 libv8-3.14.5 (从 .../libv8-3.14.5_3.14.5.8-4_amd64.deb) ...
Selecting previously unselected package nodejs.
正在解压缩 nodejs (从 .../nodejs_0.10.15~dfsg1-4_amd64.deb) ...
正在处理用于 doc-base 的触发器...
Processing 1 added doc-base file...
正在处理用于 man-db 的触发器...
正在设置 libc-ares2:amd64 (1.10.0-2) ...
正在设置 libv8-3.14.5 (3.14.5.8-4) ...
正在设置 nodejs (0.10.15~dfsg1-4) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in 自动模式
正在处理用于 libc-bin 的触发器...
cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ rake server        //==>开启WEBrick,但是这个命令行未能成功
rake aborted!
Don't know how to build task 'server'

(See full trace by running task with --trace)
cqr@cqr-Lenovo-G480:~/Documents/Aptana Studio 3 Workspace/book$ rails s          //==>开启WEBrick,该命令行成功实现
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-10-27 17:22:10] INFO  WEBrick 1.3.1
[2013-10-27 17:22:10] INFO  ruby 1.9.3 (2012-04-20) [x86_64-linux]
[2013-10-27 17:22:10] INFO  WEBrick::HTTPServer#start: pid=8046 port=3000


Started GET "/assets/rails.png" for 127.0.0.1 at 2013-10-27 17:22:44 +0800
Served asset /rails.png - 200 OK (6ms)


转载于:https://my.oschina.net/u/1375497/blog/172278

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值