当前位置:网站首页>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
边栏推荐
- death_satan/hyperf-validate
- Idea automatically adds comments when creating classes
- Create a gson object that formats the time zone. JSON parsing time formatting zoneddatetime
- AutoCAD C polyline self intersection detection
- JDBC学习(一)——实现简单的CRUD操作
- How popular are FB and WhatsApp mass messages in 2022?
- Some habits of it veterans in the workplace
- @The reason why the Autowired annotation is empty
- Linux MySQL implements root user login without password
- easyui 重置多条件查询
猜你喜欢

Socket. Io long Connection Push, version Control, Real - Time Active user volume Statistics

Linux Mysql 实现root用户不用密码登录

Camx架构开UMD、KMD log以及dump图的方式

freeswitch设置最大呼叫时长

Uni app wechat applet sharing function

ROS rviz_ Satellite function package visualizes GNSS track and uses satellite map

How to open UMD, KMD log and dump diagrams in CAMX architecture

Linked list (III) - reverse linked list

Lombok @equalsandhashcode annotation how to make objects The equals () method compares only some attributes

socke.io長連接實現推送、版本控制、實時活躍用戶量統計
随机推荐
lombok @EqualsAndHashCode 注解如何让对象.equals()方法只比较部分属性
socke.io長連接實現推送、版本控制、實時活躍用戶量統計
FPGA - 7 Series FPGA selectio -09- io of advanced logic resources_ FIFO
[untitled]
Alert pop-up processing in Web Automation
Linked list (III) - reverse linked list
Idea automatically adds comments when creating classes
How to open UMD, KMD log and dump diagrams in CAMX architecture
异常处理(一)——空指针和数组索引越界
eyebeam高级设置
easyui 重置多条件查询
Online facing such an online world, the only limitation is our imagination
Difficulty calculation of Ethereum classic
Teach you how to use UCOS
移动广告发展动向:撬动存量,精细营销
ImportError: cannot import name 'ensure_ dir_ Possible solutions for exists'
Exception handling (I) -- null pointer and array index out of bounds
链表(二)——设计链表
Select trigger event from easyUI drop-down box
ROS rviz_ Satellite function package visualizes GNSS track and uses satellite map