参考资料:
http://blog.csdn.net/andy_yf/article/details/7396530
初始化环境:
写道
sudo apt-get install git-core
sudo apt-get install libevent-dev zlib-devel glib2-devel libssl-dev
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libtool pkg-config g++
sudo apt-get install ruby1.8-dev libcommons-lang-java php5-dev
sudo apt-get install automake flex bison
sudo apt-get install curl
sudo apt-get install ruby ruby-full ruby-dev librspec-ruby rake rubygems libdaemons-ruby libgemplugin-ruby mongrel
sudo apt-get install python-dev python-twisted
sudo apt-get install libbit-vector-perl
sudo apt-get install php5-dev php5-cli
sudo apt-get install erlang-base erlang-eunit erlang-dev
sudo apt-get install golang
sudo apt-get install libglib2.0-dev
sudo apt-get install ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
sudo apt-get install ant
sudo apt-get install libevent-dev zlib-devel glib2-devel libssl-dev
sudo apt-get install libboost-dev libboost-test-dev libboost-program-options-dev libtool pkg-config g++
sudo apt-get install ruby1.8-dev libcommons-lang-java php5-dev
sudo apt-get install automake flex bison
sudo apt-get install curl
sudo apt-get install ruby ruby-full ruby-dev librspec-ruby rake rubygems libdaemons-ruby libgemplugin-ruby mongrel
sudo apt-get install python-dev python-twisted
sudo apt-get install libbit-vector-perl
sudo apt-get install php5-dev php5-cli
sudo apt-get install erlang-base erlang-eunit erlang-dev
sudo apt-get install golang
sudo apt-get install libglib2.0-dev
sudo apt-get install ghc6 cabal-install libghc6-binary-dev libghc6-network-dev libghc6-http-dev
sudo apt-get install ant
执行: sudo ./configure 执行结果:
写道
thrift 0.9.1
Building C++ Library ......... : yes
Building C (GLib) Library .... : yes
Building Java Library ........ : yes
Building C# Library .......... : no
Building Python Library ...... : yes
Building Ruby Library ........ : yes
Building Haskell Library ..... : yes
Building Perl Library ........ : yes
Building PHP Library ......... : yes
Building Erlang Library ...... : yes
Building Go Library .......... : yes
Building D Library ........... : no
C++ Library:
Build TZlibTransport ...... : yes
Build TNonblockingServer .. : yes
Build TQTcpServer (Qt) .... : no
Java Library:
Using javac ............... : javac
Using java ................ : java
Using ant ................. : /home/libin/software/ant/apache-ant-1.9.0/bin/ant
Python Library:
Using Python .............. : /usr/bin/python
PHP Library:
Using php-config .......... : /usr/bin/php-config
Ruby Library:
Using Ruby ................ : /usr/bin/ruby
Haskell Library:
Using Haskell ............. : /usr/bin/runhaskell
Using Cabal ............... : /usr/bin/cabal
Perl Library:
Using Perl ................ : /usr/bin/perl
Erlang Library:
Using erlc ................ : /usr/bin/erlc
Go Library:
Using Go................... : /usr/bin/go
Using Go version........... : go version go1
Building C++ Library ......... : yes
Building C (GLib) Library .... : yes
Building Java Library ........ : yes
Building C# Library .......... : no
Building Python Library ...... : yes
Building Ruby Library ........ : yes
Building Haskell Library ..... : yes
Building Perl Library ........ : yes
Building PHP Library ......... : yes
Building Erlang Library ...... : yes
Building Go Library .......... : yes
Building D Library ........... : no
C++ Library:
Build TZlibTransport ...... : yes
Build TNonblockingServer .. : yes
Build TQTcpServer (Qt) .... : no
Java Library:
Using javac ............... : javac
Using java ................ : java
Using ant ................. : /home/libin/software/ant/apache-ant-1.9.0/bin/ant
Python Library:
Using Python .............. : /usr/bin/python
PHP Library:
Using php-config .......... : /usr/bin/php-config
Ruby Library:
Using Ruby ................ : /usr/bin/ruby
Haskell Library:
Using Haskell ............. : /usr/bin/runhaskell
Using Cabal ............... : /usr/bin/cabal
Perl Library:
Using Perl ................ : /usr/bin/perl
Erlang Library:
Using erlc ................ : /usr/bin/erlc
Go Library:
Using Go................... : /usr/bin/go
Using Go version........... : go version go1
执行 :
sudo make
注意这里如果使用 make 出错了,
执行:
sudo make install
执行遇到的错误:
错误1: 写道
Configuring thrift-0.9.1...
Setup.lhs: At least the following dependencies are missing:
hashable -any, unordered-containers -any, vector -any
make[3]: *** [all-local] 错误 1
make[3]:正在离开目录 `/home/libin/software/thrift/thrift-0.9.1/lib/hs'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/libin/software/thrift/thrift-0.9.1/lib'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/libin/software/thrift/thrift-0.9.1'
make: *** [all] 错误 2
Setup.lhs: At least the following dependencies are missing:
hashable -any, unordered-containers -any, vector -any
make[3]: *** [all-local] 错误 1
make[3]:正在离开目录 `/home/libin/software/thrift/thrift-0.9.1/lib/hs'
make[2]: *** [all-recursive] 错误 1
make[2]:正在离开目录 `/home/libin/software/thrift/thrift-0.9.1/lib'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/libin/software/thrift/thrift-0.9.1'
make: *** [all] 错误 2
安装:
解决方法:
libghc-unordered-containers-dev
sudo apt-get install libghc-unordered-containers-dev错误2 写道
make[3]: 正在进入目录 `/home/libin/software/thrift/thrift-0.9.1/lib/erl'
./rebar get-deps
==> jsx (get-deps)
==> erl (get-deps)
./rebar compile
==> jsx (compile)
ERROR: compile failed while processing /home/libin/software/thrift/thrift-0.9.1/lib/erl/deps/jsx: {'EXIT',{{badmatch,{error,eacces}},
[{rebar_otp_app,preprocess,2},
{rebar_otp_app,compile,2},
{rebar_core,run_modules,4},
{rebar_core,execute,4},
{rebar_core,process_dir,4},
{rebar_core,process_each,5},
{rebar_core,process_dir,4},
{rebar_core,process_commands,1}]}}
make[3]: *** [all] 错误 1
./rebar get-deps
==> jsx (get-deps)
==> erl (get-deps)
./rebar compile
==> jsx (compile)
ERROR: compile failed while processing /home/libin/software/thrift/thrift-0.9.1/lib/erl/deps/jsx: {'EXIT',{{badmatch,{error,eacces}},
[{rebar_otp_app,preprocess,2},
{rebar_otp_app,compile,2},
{rebar_core,run_modules,4},
{rebar_core,execute,4},
{rebar_core,process_dir,4},
{rebar_core,process_each,5},
{rebar_core,process_dir,4},
{rebar_core,process_commands,1}]}}
make[3]: *** [all] 错误 1
解决方法1: 写道
sudo apt-get install erlang-base erlang-eunit erlang-dev
sudo apt-get install erlang erlang-doc
sudo apt-get install npm
npm install jsx
解决方法1:
我们发现 其实他支持很多种语言,我们之需要使用自己需要的比我之需要用 java:
在config的时候,我们不使用其他语言插件即可:
使用一下命令解决:./configure --with-erlang=no --with-perl=no --with-ruby=no --with-haskell=no --with-d=no --with-php=no --with-php_extension=no
sudo make clean
sudo make
看一下结果:
出现一下错误:
libin@libin-ThinkPad-T420:~/software/thrift/thrift-0.9.1$ npm install jsx
npm http GET https://registry.npmjs.org/jsx
npm http 304 https://registry.npmjs.org/jsx
npm ERR! Error: No compatible version found: jsx
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/libin/software/thrift/thrift-0.9.1/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-53-generic
npm ERR! command "node" "/usr/bin/npm" "install" "jsx"
npm ERR! cwd /home/libin/software/thrift/thrift-0.9.1
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: jsx
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/libin/software/thrift/thrift-0.9.1/npm-debug.log
npm not ok
libin@libin-ThinkPad-T420:~/software/thrift/thrift-0.9.1$ npm update
libin@libin-ThinkPad-T420:~/software/thrift/thrift-0.9.1$ npm -version
1.1.4
请自己安装 下载npm :http://nodejs.org/download/ 安装 完成 将npm 命令放在 path中npm http GET https://registry.npmjs.org/jsx
npm http 304 https://registry.npmjs.org/jsx
npm ERR! Error: No compatible version found: jsx
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/usr/share/npm/lib/cache.js:488:10)
npm ERR! at next_ (/usr/share/npm/lib/cache.js:438:17)
npm ERR! at next (/usr/share/npm/lib/cache.js:415:44)
npm ERR! at /usr/share/npm/lib/cache.js:408:5
npm ERR! at saved (/usr/share/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/usr/lib/nodejs/graceful-fs.js:230:7)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /home/libin/software/thrift/thrift-0.9.1/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-53-generic
npm ERR! command "node" "/usr/bin/npm" "install" "jsx"
npm ERR! cwd /home/libin/software/thrift/thrift-0.9.1
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message No compatible version found: jsx
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/libin/software/thrift/thrift-0.9.1/npm-debug.log
npm not ok
libin@libin-ThinkPad-T420:~/software/thrift/thrift-0.9.1$ npm update
libin@libin-ThinkPad-T420:~/software/thrift/thrift-0.9.1$ npm -version
1.1.4
安装 jsx : npm install jsx
相关推荐
1、下载 thrift.exe 2、写 *.thrift 文件【结构和函数】 3、根据 *.thrift 文件生成对应语言代码:thrift.exe添加到环境变量,利用命令还生成代码 4、服务端代码 5、客户端代码
那些年,与你同分同位次的同学都去了哪里?全国各大学在辽宁2020-2024年各专业最低录取分数及录取位次数据,高考志愿必备参考数据
2024嵌入式大厂面经50套大厂高频面试题资料
eclipaint-eclipse插件
该TemplateAppProject是一个基于XUI、XUtil、XAOP等框架构建的Android模版空壳工程,包含172个文件,涵盖68个Java源文件、64个XML配置文件、17个PNG图片文件、6个Gradle脚本文件、2个YAML配置文件、2个Git忽略文件、2个文本文件和1个Markdown文件。该工程集成了XPage、XUpdate和XHttp2等功能,旨在快速搭建Android应用开发环境。
IEA乌克兰的能源安全和即将到来的冬天-乌克兰及其合作伙伴的能源行动计划(英).pdf
UC-GUI文档uCGUI中文手册UC-GUI文档uCGUI中文手册
微信小程序反编译_ xapkg解包器
微信小程序婚礼邀请函_婚礼邀请函
该项目是一款基于Html和TypeScript构建的2B2C礼品购买平台源码,包含958个文件,涵盖196个TypeScript文件、145个Java文件、119个JPG图片、118个CSS文件、85个JavaScript文件、54个HTML文件、47个类文件、44个XML文件、26个PNG图片、23个Vue组件。该平台采用现代化前端技术,旨在提供一个流畅的礼品选购体验。
Fedora-Workstation-Live-x86_64-40-1.14.iso.008
那些年,与你同分同位次的同学都去了哪里?全国各大学在辽宁2020-2024年各专业最低录取分数及录取位次数据,高考志愿必备参考数据
Fedora-Workstation-Live-x86_64-40-1.14.iso.002
那些年,与你同分同位次的同学都去了哪里?全国各大学在辽宁2020-2024年各专业最低录取分数及录取位次数据,高考志愿必备参考数据
【作品名称】:基于Matlab的单水箱液位的模糊控制系统设计【含课程设计报告+程序】 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【项目介绍】: 控制⽬标 控制⽬标:倒锥形容器的液位⾼度h=h0 检测装置:通过测量容器底部压⼒来间接测量液位 执⾏机构:控制进⽔电磁阀V1的开启度开启度 u ∈ [0, 90 ∘ ] 受控对象:模糊控制器最终影响倒锥形容器内的⽔量,所以受控对象是倒锥形容器 为简单起⻅,假设电磁阀V1的开启度与进⽔量间呈线性关系。所以控制进⽔量Qi实际上就是控制 电磁阀V1的开启度u。 因此对于整个系统⽽⾔,模糊控制器最终控制的是电磁阀V1的开启度u,从⽽控制倒锥形容器内 的⽔量。 注意:模糊控制器受控对象是倒锥形容器,其液位⾼度h和进⽔量Qi间的关系不是线性关系 电磁阀V2的开度固定,但出⽔量Qo与倒锥形容器的液位⾼ 【资源声明】:本资源作为“参考资料”而不是“定制需求”,代码只能作为参考,不能完全复制照搬。需要有一定的基础能够看懂代码,能够自行调试代码并解决报错,能够自行添加功能修改代码。
包含RMI服务所需的内容和测试使用的攻击FastJson1反序列化漏洞的Java文件
Wanandroid微信小程序w_x-Wanandroid
Fedora-Workstation-Live-x86_64-40-1.14.iso.005
全国大学生电子设计大赛项目合集全国电赛优秀作品STM32项目基于stm32和mpu9250的usbhid键盘,鼠标,游戏控制器
那些年,与你同分同位次的同学都去了哪里?全国各大学在辽宁2020-2024年各专业最低录取分数及录取位次数据,高考志愿必备参考数据