Install RISC-V Toolchain in Centos, need these tools ...
作者:搬砖的小青年
来源:CSDN
原文:https://blog.csdn.net/qq_30549833/article/details/72955881
版权声明:Reference the 搬砖的小青年 and modify some error and update software version! So the first author is 搬砖的小青年,
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 ..
#安装autoconf
wget 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 xzvf automake-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 xzvf automake-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 ..