皋陶 发表于 2020-8-24 10:03:23

Install RISC-V Toolchain in Centos, need these tools

本帖最后由 皋陶 于 2021-11-18 19:56 编辑

手动安装m4, autoconf, automake, libtool
Install RISC-V Toolchain in Centos, need these tools ...

please postar the previous link when you copy it.

Copy the next content into a shell script, and run it.
#安装m4
wget http://mirrors.kernel.org/gnu/m4/m4-1.4.18.tar.gz \
&& tar -xzvf m4-1.4.18.tar.gz \
&& cd m4-1.4.18 \
&& ./configure -prefix=/usr/local
make && make install
cd ..
#安装autoconfwget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.69.tar.gz \
&& tar -xzvf autoconf-2.69.tar.gz \
&& cd autoconf-2.69 \
&& ./configure -prefix=/usr/local
make && make install
cd ..

#安装automake(update the version)

#don't use 1.16 version, there is a bug in it;
#wget http://mirrors.kernel.org/gnu/automake/automake-1.16.tar.gz\
#&& tar xzvfautomake-1.16.tar.gz\
#&& cd automake-1.16 \
#&& ./configure -prefix=/usr/local

#sed -i 's/$(update_mans) automake-$(APIVERSION)/$(update_mans) automake-$(APIVERSION) --no-discard-stderr/' Makefile
#make && make install
#cd ..

#when make error, reference the webpage:
#https://blog.csdn.net/weixin_33950035/article/details/85996757

wget http://mirrors.kernel.org/gnu/automake/automake-1.15.tar.gz \
&& tar xzvfautomake-1.15.tar.gz \
&& cd automake-1.15 \
&& ./configure -prefix=/usr/local

make && make install
cd ..
#安装libtool
wget http://mirrors.kernel.org/gnu/libtool/libtool-2.4.5.tar.gz \
&& tar xzvf libtool-2.4.5.tar.gz \
&& cd libtool-2.4.5 \
&& ./configure -prefix=/usr/local
make && make install
cd ..
本篇完,感谢关注:RISC-V单片机中文网
页: [1]
查看完整版本: Install RISC-V Toolchain in Centos, need these tools