raspa的安装与编译

发布于 2021-06-22  15814 次阅读


1.安装之前要检查一下是否装了automake, autoconf, m4, libtool这些包,如果某些包没有装我们就要下载

安装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

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
make && make install
cd ..

安装libtool

wget http://mirrors.kernel.org/gnu/libtool/libtool-2.4.6.tar.gz \
&& tar xzvf libtool-2.4.6.tar.gz \
&& cd libtool-2.4.6 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

2.安装raspa

可以从GitHub上下载

git clone https://github.com/iRASPA/RASPA2.git

3.编译

>>> cd raspa
>>> ls

>>> rm -rf autom4te.cache
>>> mkdir m4
>>> aclocal
>>> autoreconf -i

> automake --add-missing
> autoconf
> ./configure --prefix={RASPA_DIR}//可以将{RASPA_DIR}替换为想要安装的文件夹路径

>>> make -j4 //-j后的数字代表同时编译的线程数

>>> make install
...
就这样吧,但千万别忘了回家的路
最后更新于 2023-05-28