- 浏览: 2487505 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
buildr(1)Introduce and Install
- 博客分类:
- Testing
buildr(1)Introduce and Install
1. Install on Linux
>wget http://buildr.apache.org/scripts/install-linux.sh
>sudo sh install-linux.sh
It told me that I need these things as follow:
No package ruby available.
No package rubygems available.
No package ruby-devel available.
No package gcc available.
Hard to believe that. So many things to do on redhat.
message:
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package httpd-devel available.
Nothing to do
solution:
>vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
>sudo yum clean all
>sudo yum update --skip-broken
Install gcc, git on my system.
>sudo yum install glibc-kernheaders --skip-broken
Some cycle dependency here.
try to prepare rvm and install ruby1.9.2, and install gem then.
2. Install on Ubuntu
Install ruby related things
>sudo apt-get install ruby-full ruby1.8-dev libopenssl-ruby build-essential
make sure I installed gem on my system
>gem --version
1.8.6
make sure JAVA is there on my system
>echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
Install buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr
Other commands to upgrade a new version or install a specific version:
>sudo env JAVA_HOME=$JAVA_HOME gem update buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.4.3
>sudo buildr test
error message:
RuntimeError : Are we forgetting something? JAVA_HOME not set.
solutions:
>sudo env JAVA_HOME=$JAVA_HOME buildr test
3. Install on windows
Install ruby tools on windows first http://rubyinstaller.org/downloads/archives, download the file with version 1.8.6
http://rubyforge.org/frs/download.php/71066/rubyinstaller-1.8.6-p398.exe
set JAVA_HOME
execute the install command
>gem install buildr --platform nswin32
error message:
'make' is not recognized as an internal or external command, operable program or batch file.
solution:
Install the DEVKIT, update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Add this directory to path: D:\tool\devkit\bin
Fix this problem, but other problem accured. My windows system is 64bit win7.
error message:
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: warning: useless type name in empty declaration
Solutions:
try install MinGW via this URL http://sourceforge.net/projects/mingw/files/
>gem install buildr --platform x86-nswin32
The problem is still there, maybe that is something related to my 64-bit system. I fail to install this on windows.
I tried to update my ruby to 1.9.2 and update my gem.
Using this command to check the envrionment
>gem evn
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.13
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
- INSTALLATION DIRECTORY: D:/tool/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: D:/tool/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/tool/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
>gem install rjb --platform x86-mswin32
>gem install buildr --platform x86-nswin32
edit the file in this directory D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext/jniwrap.h, change the line
from
typedef long long __int64;
to
typedef long long long64;
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.3.gem --ruby > ../../specifications/rjb-1.3.3.gemspec
try again
>gem install buildr --platform x86-nswin32
>buildr --version
successful here. but error message in next steps
>buildr compile
error message:
Buildr aborted!
RuntimeError : can't create Java VM
solutions:
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
>cd d:\tool\Ruby192\lib\ruby\gems\1.9.1\gems\rjb-1.3.8-x86-mswin32-60\test
>ruby test.rb
new error message:
The program can't start because msvcrt-ruby18.dll is missing from your computer.
Try reinstalling the program to fix this problem.
>gem uninstall rjb -v 1.3.8
>gem uninstall rjb -v 1.3.4
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>gem uninstall rjb -v 1.3.3
rollback my ruby to 1.8.6, and gem 1.3.7
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
new error message:
The procedure entry point rb_str_set_len could not be located in the dynamic link library msvcrt-ruby18.dll
solutions:
>gem uninstall rjb -v 1.3.3
>gem list
>gem install rjb -v 1.3.3 --platform mswin32
In the mean time, change the file jniwrap.h
>gem uninstall buildr -v 1.4.6
>gem install buildr -v 1.4.6 --platform mswin32
>ruby -v -e "p ENV['JAVA_HOME']"
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
"D:\\tool\\jdk1.6"
>ruby -v -e "p ENV['LD_LIBRARY_PATH']"
C:\Ruby186\lib\ruby\gems\1.8\gems\rjb-1.3.4\ext/rjb.c:1135: undefined reference to `rb_str_set_len'
rollback back to 1.9.2
>gem install rjb -v 1.3.4 --platform ruby
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.4/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.4.gem --ruby > ../../specifications/rjb-1.3.4.gemspec
Fail at last, I give up here.
4. Check the Installation
>sudo buildr --version
Buildr 1.4.6
5. Running Buildr
put a buildfile on that directory. Something like ant,
#clean and rebuild
>sudo buildr clean build
>sudo buildr install
The related things are ruby, rake, antwrap, yaml.
references:
http://buildr.apache.org/
http://rubyinstaller.org/
http://sillycat.iteye.com/blog/1133322
http://sillycat.iteye.com/blog/1156180
http://sillycat.iteye.com/blog/1154490
http://ryang.iteye.com/blog/1147759
http://www.cesclub.com/bw/jishuzhongxin/Webjishu/2011/0813/3504.html
http://devjete.wordpress.com/2011/01/31/installing-rjb-1-3-4-on-windows-7-32bit-wo-vc/
http://devjete.wordpress.com/2011/01/31/ruby-1-9-2-rails-3-sqlite3-rjb-1-3-4-on-windows-7-32bit/
http://devjete.wordpress.com/author/somehi/
https://issues.apache.org/jira/browse/BUILDR-549
http://www.shaunambrose.com/2010/11/11/how-to-fix-the-msvcrt-ruby18-dll-is-missing-from-your-computer-error-message-in-ruby-on-rails/
http://stackoverflow.com/questions/3250406/msvcrt-ruby18-dll-was-not-found-with-ruby
http://rjb.rubyforge.org/
1. Install on Linux
>wget http://buildr.apache.org/scripts/install-linux.sh
>sudo sh install-linux.sh
It told me that I need these things as follow:
No package ruby available.
No package rubygems available.
No package ruby-devel available.
No package gcc available.
Hard to believe that. So many things to do on redhat.
message:
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package httpd-devel available.
Nothing to do
solution:
>vi /etc/yum.conf
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
[base]
name=CentOS-$releasever – Base
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
[updates]
name=Red Hat Linux $releasever – Updates
baseurl=http://mirror.centos.org/centos/4/os/x86_64/
gpgcheck=1
>sudo yum clean all
>sudo yum update --skip-broken
Install gcc, git on my system.
>sudo yum install glibc-kernheaders --skip-broken
Some cycle dependency here.
try to prepare rvm and install ruby1.9.2, and install gem then.
2. Install on Ubuntu
Install ruby related things
>sudo apt-get install ruby-full ruby1.8-dev libopenssl-ruby build-essential
make sure I installed gem on my system
>gem --version
1.8.6
make sure JAVA is there on my system
>echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
Install buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr
Other commands to upgrade a new version or install a specific version:
>sudo env JAVA_HOME=$JAVA_HOME gem update buildr
>sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.4.3
>sudo buildr test
error message:
RuntimeError : Are we forgetting something? JAVA_HOME not set.
solutions:
>sudo env JAVA_HOME=$JAVA_HOME buildr test
3. Install on windows
Install ruby tools on windows first http://rubyinstaller.org/downloads/archives, download the file with version 1.8.6
http://rubyforge.org/frs/download.php/71066/rubyinstaller-1.8.6-p398.exe
set JAVA_HOME
execute the install command
>gem install buildr --platform nswin32
error message:
'make' is not recognized as an internal or external command, operable program or batch file.
solution:
Install the DEVKIT, update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Add this directory to path: D:\tool\devkit\bin
Fix this problem, but other problem accured. My windows system is 64bit win7.
error message:
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: error: 'long long long' is too long for GCC
jniwrap.h:24: warning: useless type name in empty declaration
Solutions:
try install MinGW via this URL http://sourceforge.net/projects/mingw/files/
>gem install buildr --platform x86-nswin32
The problem is still there, maybe that is something related to my 64-bit system. I fail to install this on windows.
I tried to update my ruby to 1.9.2 and update my gem.
Using this command to check the envrionment
>gem evn
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.13
- RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [i386-mingw32]
- INSTALLATION DIRECTORY: D:/tool/Ruby192/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: D:/tool/Ruby192/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/tool/Ruby192/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
>gem install rjb --platform x86-mswin32
>gem install buildr --platform x86-nswin32
edit the file in this directory D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext/jniwrap.h, change the line
from
typedef long long __int64;
to
typedef long long long64;
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.3/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.3.gem --ruby > ../../specifications/rjb-1.3.3.gemspec
try again
>gem install buildr --platform x86-nswin32
>buildr --version
successful here. but error message in next steps
>buildr compile
error message:
Buildr aborted!
RuntimeError : can't create Java VM
solutions:
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
>cd d:\tool\Ruby192\lib\ruby\gems\1.9.1\gems\rjb-1.3.8-x86-mswin32-60\test
>ruby test.rb
new error message:
The program can't start because msvcrt-ruby18.dll is missing from your computer.
Try reinstalling the program to fix this problem.
>gem uninstall rjb -v 1.3.8
>gem uninstall rjb -v 1.3.4
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>gem uninstall rjb -v 1.3.3
rollback my ruby to 1.8.6, and gem 1.3.7
>gem install rjb -v 1.3.8 --platform x86-mswin32-60
>env JAVA_HOME=D:\tool\jdk1.6 gem install buildr -v 1.4.6 --platform x86-nswin32-60
new error message:
The procedure entry point rb_str_set_len could not be located in the dynamic link library msvcrt-ruby18.dll
solutions:
>gem uninstall rjb -v 1.3.3
>gem list
>gem install rjb -v 1.3.3 --platform mswin32
In the mean time, change the file jniwrap.h
>gem uninstall buildr -v 1.4.6
>gem install buildr -v 1.4.6 --platform mswin32
>ruby -v -e "p ENV['JAVA_HOME']"
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]
"D:\\tool\\jdk1.6"
>ruby -v -e "p ENV['LD_LIBRARY_PATH']"
C:\Ruby186\lib\ruby\gems\1.8\gems\rjb-1.3.4\ext/rjb.c:1135: undefined reference to `rb_str_set_len'
rollback back to 1.9.2
>gem install rjb -v 1.3.4 --platform ruby
>cd D:/tool/Ruby192/lib/ruby/gems/1.9.1/gems/rjb-1.3.4/ext
>make
>make all
>make install
>cd ..
>gem spec ../../cache/rjb-1.3.4.gem --ruby > ../../specifications/rjb-1.3.4.gemspec
Fail at last, I give up here.
4. Check the Installation
>sudo buildr --version
Buildr 1.4.6
5. Running Buildr
put a buildfile on that directory. Something like ant,
#clean and rebuild
>sudo buildr clean build
>sudo buildr install
The related things are ruby, rake, antwrap, yaml.
references:
http://buildr.apache.org/
http://rubyinstaller.org/
http://sillycat.iteye.com/blog/1133322
http://sillycat.iteye.com/blog/1156180
http://sillycat.iteye.com/blog/1154490
http://ryang.iteye.com/blog/1147759
http://www.cesclub.com/bw/jishuzhongxin/Webjishu/2011/0813/3504.html
http://devjete.wordpress.com/2011/01/31/installing-rjb-1-3-4-on-windows-7-32bit-wo-vc/
http://devjete.wordpress.com/2011/01/31/ruby-1-9-2-rails-3-sqlite3-rjb-1-3-4-on-windows-7-32bit/
http://devjete.wordpress.com/author/somehi/
https://issues.apache.org/jira/browse/BUILDR-549
http://www.shaunambrose.com/2010/11/11/how-to-fix-the-msvcrt-ruby18-dll-is-missing-from-your-computer-error-message-in-ruby-on-rails/
http://stackoverflow.com/questions/3250406/msvcrt-ruby18-dll-was-not-found-with-ruby
http://rjb.rubyforge.org/
发表评论
-
RESTful JSON Mock Server
2015-03-19 11:58 759RESTful JSON Mock Server C ... -
Performance Tool(7)Improve Lua and Wrk
2015-01-17 06:37 1008Performance Tool(7)Improve Lua ... -
Performance Tool(6)Gatling Upgrade to 2.1.2 Version Or wrk
2015-01-10 01:15 938Performance Tool(6)Gatling Upg ... -
Performance Tool(5)Upgrade to 2.0.x
2014-08-27 03:34 1096Performance Tool(5)Upgrade to 2 ... -
Performance Tool(4)CSV File Data Feeder
2014-08-25 10:50 985Performance Tool(4)CSV File Dat ... -
wrk with LuaJIT
2014-08-19 06:30 1298wrk with LuaJITHere is an exa ... -
Performance Tool(3)Gatling Upgrade and Cluster
2014-07-25 02:32 1291Performance Tool(3)Gatling Upgr ... -
WRK a HTTP Benchmarking Tool
2014-03-07 04:42 1101WRK a HTTP Benchmarking Tool1 ... -
Performance Tool(1)Gatling
2013-03-15 05:28 1265Performance Tool(1)Gatling 1. ... -
Jenkins Configuration(4)Improve Shell Script Debug/Info Message
2013-01-07 06:32 1285Jenkins Configuration(4)Improve ... -
Jenkins Configuration(3)Shell Script
2012-12-28 01:17 2626Jenkins Configuration(3)Shell S ... -
Eclipse Plugin(2)SOAP UI
2012-06-08 10:48 1319Eclipse Plugin(2)SOAP UI Plugi ... -
Spring3 and REST Integeration(VII)Controller JUnit Test and Mock/Spring Test MVC
2012-04-06 15:57 1884Spring3 and REST Integeration(V ... -
Spring3 and REST Integration(VI)Controller JUnit Test and Mock/Spring HandlerAda
2012-04-06 15:51 1782Spring3 and REST Integration(VI ... -
Spring3 and REST Integration(V)Controller JUnit Test and Mock/HandlerAdapter
2012-04-06 15:41 2806Spring3 and REST Integration(V) ... -
Spring3 and REST Integration(IV)Controller JUnit Test and Mock/Servlet
2012-04-06 15:13 1908Spring3 and REST Integration(IV ... -
Jbehave(2)Some Improvement and POM changes
2012-03-28 23:11 1399Jbehave(2)Some Improvement and ... -
Jbehave(1) First Web Page Sample
2011-10-26 15:00 2167Jbehave(1) First Web Page Sampl ... -
WarcraftIII Problem on English Win7
2011-07-25 10:18 1905WarcraftIII Problem on English ... -
Web Performance Test Tool
2011-05-10 15:37 1401Web Performance Test Tool 1. F ...
相关推荐
里面介绍了PD方案和在实际中应用说明,及遇到的问题,解决方法,里面有市场上主流IC的介绍,供各工程技术人员学习和参考。
The OP Amp. Introduce and Applications
IR Remote Control introduce and protocol
Brocade Product introduce and Hand on Training....
team introduce.key
introduce for M1 RF card
Introduce RISC-V debugging and openocdGDB Remote Serial Protocolopenocd is an op
introduce to linux.html
J2EE_1introduce简.pdf
LINUX INTRODUCE
programming languages, install and configure a Linux environment, and work with computer vision. Everything else you do with robots will be an extension of the lessons learned in this book.
Fuel_Gauge_introduce
教材introduce to java programming 9th英文版,pdf,欢迎下载
SST_MCU_Introduce选型!!!!!!!!!!
R Data Structures and Algorithms English | 21 Nov. 2016 | ISBN: 1786465159 | 276 Pages | AZW3/MOBI/EPUB/PDF (conv) | 39.49 MB Increase speed and performance of your applications with efficient data ...
MagnificationGestureMechanism_Introduce_v0.1.pdf
Build solutions and enhance your web applications in Redis Understand the persistent mechanism for better scalability Configure and tune the server to improve performance Identify bottlenecks and how ...
Introduce to Algorithms, A Creative Approach .英文版
EIB的控制网络及协议介绍,通过此文档可以理解EIB控制网络及布局,理解EIB协议设计的基本知识
Linux File System Structure (Filed, File, DataBase Record)