码迷,mamicode.com
首页 > 其他好文 > 详细

centos安装cowboy过程

时间:2018-05-16 15:14:42      阅读:248      评论:0      收藏:0      [点我收藏+]

标签:ror   google   符号   openssl   this   /usr   try   trying   机器   

在centos机器上安装erlang:

    yum install erlang -y

接着把之前在ubuntu上的cowboy工程拷贝到centos机器上,进入到工程目录,输入:

    make run

提示Error:“Please upgrade to Make 4 or later”,于是google了make的升级过程,如下:

    wget http://ftp.gnu.org/gnu/make/make-4.2.tar.gz

    tar -xzvf make-4.2.tar.gz

    cd make-4.2

    ./configure

    make && make run #会将make安装到/usr/local/bin目录下

    which make #查看当前的make执行位置,为/usr/bin/make

    cd /usr/bin/make

    mv make makebak

    ln -s /usr/local/bin/make ./make #建立符号链接指向/usr/local/bin/make

再次进入工程目录make run,提示Error:

    “Error loading module relx: use of opcode 153; this simulator supports only up to 152”

在stack-overflow上搜索得到解答:

    “The error use of opcode 153; this simulator supports only up to 152 means that you have a relx.beam file that was compiled with Erlang/OTP R15 or later, but you‘re trying to run it in R14 or earlier. Upgrade to a newer Erlang version, or if you already have a newer version, figure out where the old Erlang is hiding and remove it.”

重新安装高版本的erlang:

    yum install -y which wget perl openssl-devel make automake autoconf ncurses-devel gcc

    wget http://erlang.org/download/otp_src_20.2.tar.gz

    tar -zxvf otp_src_20.2.tar.gz

    cd otp_src_20.2

    ./otp_build autoconf

    ./configure && make && make install

 

centos安装cowboy过程

标签:ror   google   符号   openssl   this   /usr   try   trying   机器   

原文地址:https://www.cnblogs.com/Jackie-Snow/p/9044900.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!