当前位置:网站首页>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
边栏推荐
- Slow content advertising: the long-term principle of brand growth
- Development trend of mobile advertising: Leveraging stock and fine marketing
- eyebeam高级设置
- MySQL common functions
- Lombok @equalsandhashcode annotation how to make objects The equals () method compares only some attributes
- Independent station sellers are using the five e-mail marketing skills, do you know?
- Install and manage multiple versions of PHP under mac
- Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
- Difficulty calculation of Ethereum classic
- Sklearn Feature Engineering (summary)
猜你喜欢

Oracle fundamentals summary

语音增强-频谱映射

Sharing tips for efficient scripting

Difficulty calculation of Ethereum classic

Sklearn Feature Engineering (summary)

移动广告发展动向:撬动存量,精细营销

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

Parsing ng template with let total in NZ Pagination

FPGA - 7系列 FPGA SelectIO -08- 高级逻辑资源之OSERDESE2

选拔赛题目代码
随机推荐
Difficulty calculation of Ethereum classic
Install redis on windows and permanently change the password, and integrate redis with the SSM framework
Linux Mysql 实现root用户不用密码登录
MySQL(二)——基本操作
eyebeam高级设置
创建格式化时间,格式化时区的gson对象。json解析时间格式化 ZonedDateTime
Development trend of mobile advertising: Leveraging stock and fine marketing
Configure redis from 0
freeswitch设置最大呼叫时长
Xcode13.3.1 项目执行pod install后报错
Deep learning 19 loss functions
使用SQL select count distinct查询语句统计数据库中某个字段的唯一值总数量
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException:异常解决
整型提升和大小端字节序
Taobao seo training video course [22 lectures]
MR-WordCount
MySQL(一)——安装
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance
Openharmony gnawing paper growth plan -- json-rpc
socke.io長連接實現推送、版本控制、實時活躍用戶量統計