当前位置:网站首页>FPM tool installation
FPM tool installation
2022-06-28 06:23:00 【Be realistic】

summary
Recently, I was sorting out the compilation environment of the computer room , The process is tortuous and painful , Make a note of .
An old project before , When packing, we use a tool called fpm Tools for .
The compilation environment involves centos6 and centos7, In the process of the new compilation environment , How to install fpm.
Environmental Science
centos6
centos7
Russian dolls during installation
We try to deploy the compilation and packaging environment on a new server .
Deploy the packaging environment , The packaging script uses fpm(1) Tools .
install fpm Tools , I searched the Internet ,centos Installation on fpm The process of packaging tools , Mostly through yum install “ruby(2) rubygems ruby-devel”, Re pass gem(3) install fpm.
however , In the use of gem install fpm In the process of , requirement ruby The version is greater than 2.4(yum Installed ruby-1.8.7).
ok , upgrade ruby, Let's install on the Internet rvm(4) To manage upgrades ruby edition ...
continue ,rvm The official website says this is easy (Cut Rubies with ease!), Then the first “gpg2” Command various errors ...
gpgkeys: HTTP fetch error 6: Couldn't resolve host 'keys.gnupg.net'
gpg After searching for this mistake for a long time, there was no reliable solution , Complete cognitive blind spot .
Take a break , Organize your thoughts .
go back to ruby Its own problems , stay ruby Download the source code and install it on the official website of .
Available installation steps
fpm The packaging process will use rpmbuild Tools , need yum install rpmdevtools.
sudo yum install rpmdevtools
Delete yum Old version of source installation ruby.
sudo yum remove ruby ruby-devel rubygems
from ruby Download from the official website ruby-2.5.9 Version of the source code package .
wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.9.tar.gz
Compilation and installation .
tar -zxvf ruby-2.5.9.tar.gz
cd ruby-2.5.9
./configure
make
sudo make install
Establish a soft connection , otherwise sudo You can't find gem command , Or found gem Wrong version .
sudo ln -s /usr/local/bin/gem /usr/bin/gem
ruby -v
gem -v
Use gem install fpm, Specify the version 1.9.3 Because the old compilation environment is consistent .
sudo gem install fpm -v 1.9.3
sudo ln -s /usr/local/bin/fpm /usr/bin/fpm
fpm -v
summary
Various documents and solutions on the Internet are not perfect , Even if it seemed perfect at the time , It will become unusable as time goes on .
This is a matter that all technical people will be bald .
ruby The source code compilation and installation of is relatively simple and smooth .
ruby2.5.9 The version has also passed the maintenance period .
Empty as usual
Be serious
边栏推荐
- Development trend of mobile advertising: Leveraging stock and fine marketing
- High quality domestic stereo codec cjc8988, pin to pin replaces wm8988
- Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]]
- AutoCAD C# 多段线小锐角检测
- D3D11_ Chili_ Tutorial (3): design a bindable/drawable system
- Linked list (III) - reverse linked list
- Install redis on windows and permanently change the password, and integrate redis with the SSM framework
- Shell script one click deployment (MySQL)
- AutoCAD C# 多段线自相交检测
- YYGH-BUG-03
猜你喜欢

FPGA - 7 Series FPGA selectio -09- io of advanced logic resources_ FIFO

death_satan/hyperf-validate

CAD二次开发+NetTopologySuite+PGIS 引用多版本DLL问题

death_ satan/hyperf-validate

Independent station sellers are using the five e-mail marketing skills, do you know?

Alert pop-up processing in Web Automation

链表(三)——反转链表

助力涨点 | YOLOv5结合Alpha-IoU

Xcode13.3.1 项目执行pod install后报错

JDBC学习(一)——实现简单的CRUD操作
随机推荐
JDBC learning (I) -- implementing simple CRUD operations
How popular are FB and WhatsApp mass messages in 2022?
语音增强-频谱映射
Create a gson object that formats the time zone. JSON parsing time formatting zoneddatetime
借助nz-pagination中的let-total解析ng-template
FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2
基本类型和包装类的区别
What are the advantages of e-mail marketing? Why do sellers of shopline independent station attach so much importance to it?
fpm工具安装
freeswitch设置最大呼叫时长
Alert pop-up processing in Web Automation
AttributeError: 'callable_iterator' object has no attribute 'next'
mysql常用函数
@The reason why the Autowired annotation is empty
Openharmony gnawing paper growth plan -- json-rpc
Differences between basic types and packaging classes
【Paper Reading-3D Detection】Fully Convolutional One-Stage 3D Object Detection on LiDAR Range Images
[untitled]
Yygh-6-wechat login
eyebeam高级设置