根据https://www.rabbitmq.com/which-erlang.html的说法,我有正确版本的erlang。
但是当我试图在我的CentOS7上安装rabbitmq-server-3.7.1时,它说我的erlang版本是错误的,我需要>= 19.3版本。
但我已经有20个了。
我做错了什么?
test_user@test_machine: ~/Downloads
$ sudo yum install rabbitmq-server-3.7.1-1.el7.noarch.rpm
Loaded plugins: fastestmirror, langpacks, versionlock
Examining rabbitmq-server-3.7.1-1.el7.noarch.rpm: rabbitmq-server-3.7.1-1.el7.noarch
Marking rabbitmq-server-3.7.1-1.el7.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.7.1-1.el7 will be installed
--> Processing Dependency: erlang >= 19.3 for package: rabbitmq-server-3.7.1-1.el7.noarch
Loading mirror speeds from cached hostfile
* base: mirror.awanti.com
* epel: mirror.awanti.com
* extras: mirror.awanti.com
* updates: mirror.awanti.com
--> Processing Dependency: socat for package: rabbitmq-server-3.7.1-1.el7.noarch
--> Running transaction check
---> Package rabbitmq-server.noarch 0:3.7.1-1.el7 will be installed
--> Processing Dependency: erlang >= 19.3 for package: rabbitmq-server-3.7.1-1.el7.noarch
---> Package socat.x86_64 0:1.7.3.2-2.el7 will be installed
--> Finished Dependency Resolution
Error: Package: rabbitmq-server-3.7.1-1.el7.noarch (/rabbitmq-server-3.7.1-1.el7.noarch)
Requires: erlang >= 19.3
Available: erlang-R16B-03.18.el7.x86_64 (epel)
erlang = R16B-03.18.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest我的erlang版本:
test_user@test_machine: ~/Downloads
$ erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell
"20"
test_user@test_machine: ~/Downloads
$ erl --version
Erlang/OTP 20 [erts-9.1.5] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.1.5 (abort with ^G)
1>编辑:
这是我的erlang安装步骤:我从https://www.erlang-solutions.com/resources/download.html 20.1.7 64位版本下载了CentOS 7,然后运行:
sudo yum install esl-erlang_20.1.7-1~centos~7_amd64.rpm下面是安装的"erl“软件包:
test_user@test_machine: ~
$ yum list installed | grep erl | grep -v perl
esl-erlang.x86_64 20.1.7-1 installedhttps://stackoverflow.com/questions/47945559
复制相似问题