1 Star 0 Fork 0

walter / thrift_tutorial_perl

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

thrift -r --gen perl tutorial.thrift

~/thrift/tutorial/perl

brew install perl

/usr/local/Cellar/perl/5.30.1

PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"' >> ~/.zshrc

~/thrift/tutorial/perl   master ●  make tutorialserver /usr/bin/perl PerlServer.pl Starting the server... ping() add(1,1) calculate(1, 1 0 4) calculate(1, 15 10 2) getStruct(1)

~/thrift/tutorial/perl   master ●  make tutorialclient /usr/bin/perl PerlClient.pl ping() 1+1=2 InvalidOperation: $VAR1 = bless( { 'why' => 'Cannot divide by 0', 'whatOp' => 4 }, 'tutorial::InvalidOperation' ); 15-10=5 Log: 5

https://thrift.apache.org/tutorial/#examples-clients-and-servers

Thrift Client(Perl) $ mkdir perl_client $ cd perl_client $ cp -pR ~/thrift/lib/perl/lib .

perl requirements $ sudo perl -MCPAN -e shell cpan[1]> install Class::Accessor cpan[2]> install Bit::Vector

$ perl -MClass::Accessor -e '' $ perl -MBit::Vector -e ''

Blog: http://pppurple.hatenablog.com/entry/2017/12/19/230425

已存在的文件夹或 Git 仓库 cd existing_folder git init git remote add origin git@gitee.com:walter80/thrift_tutorial_perl.git git add . git commit git push -u origin master

空文件

简介

thrift perl教程 展开 收起
Perl
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Perl
1
https://gitee.com/walter80/thrift_tutorial_perl.git
git@gitee.com:walter80/thrift_tutorial_perl.git
walter80
thrift_tutorial_perl
thrift_tutorial_perl
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891