![如何卸载从源安装的ghdl?](https://linux22.com/image/159437/%E5%A6%82%E4%BD%95%E5%8D%B8%E8%BD%BD%E4%BB%8E%E6%BA%90%E5%AE%89%E8%A3%85%E7%9A%84ghdl%EF%BC%9F.png)
我从源代码安装了 ghdl 版本 0.36。 make -n install 的输出
➜ ghdl-0.36 make -n install
mkdir -p /usr/local
mkdir -p /usr/local/bin
mkdir -p /usr/local/lib
mkdir -p /usr/local/lib/ghdl
mkdir -p /usr/local/include
gcc -c -g -DWITH_GNAT_RUN_TIME -o jumps.o /home/hari/Downloads/ghdl-0.36/./src/grt/config/jumps.c
gcc -c -g -DWITH_GNAT_RUN_TIME -o times.o /home/hari/Downloads/ghdl-0.36/./src/grt/config/times.c
gcc -c -g -DWITH_GNAT_RUN_TIME -o grt-cbinding.o /home/hari/Downloads/ghdl-0.36/./src/grt/grt-cbinding.c
gcc -c -g -DWITH_GNAT_RUN_TIME -o grt-cvpi.o /home/hari/Downloads/ghdl-0.36/./src/grt/grt-cvpi.c
gcc -c -g -DWITH_GNAT_RUN_TIME -o fstapi.o /home/hari/Downloads/ghdl-0.36/./src/grt/fst/fstapi.c
-I/home/hari/Downloads/ghdl-0.36/./src/grt/fst
gcc -c -g -DWITH_GNAT_RUN_TIME -o lz4.o /home/hari/Downloads/ghdl-0.36/./src/grt/fst/lz4.c
gcc -c -g -DWITH_GNAT_RUN_TIME -o fastlz.o /home/hari/Downloads/ghdl-0.36/./src/grt/fst/fastlz.c
gcc -c -g -o memsegs_c.o src/ortho/mcode/memsegs_c.c
gcc -c -g -DWITH_GNAT_RUN_TIME -o chkstk.o /home/hari/Downloads/ghdl-0.36/./src/grt/config/chkstk.S
if test -d ./.git \
&& desc=`cd .; git describe --dirty`; then \
sub="s/[(].*[)]/($desc)/"; \
else \
sub="s/tarball/tarball/"; \
fi; \
sed -e "$sub" -e "s/@VER@/0.36/" < src/version.in > version.tmp; \
if [ ! -r version.ads ] || ! cmp version.tmp version.ads > /dev/null; then cp version.tmp version.ads; fi
gnatmake -o ghdl_mcode -aI./src -aI./src/vhdl -aI./src/grt -aI./src/psl -aI./src/vhdl/translate -aI./src/ghdldrv -aI./src/ortho -aI./src/ortho/mcode -gnaty3befhkmr -gnatwa -gnatf -g -gnata -gnatwe -gnatw.A ghdl_jit.adb -bargs -E -largs memsegs_c.o chkstk.o jumps.o times.o grt-cbinding.o grt-cvpi.o fstapi.o lz4.o fastlz.o -ldl -lm -Wl,--version-script=/home/hari/Downloads/ghdl-0.36/./src/grt/grt.ver -Wl,--export-dynamic
install -m 755 ghdl_mcode /usr/local/bin/ghdl
for d in src/std src/synopsys std/v87 ieee/v87 synopsys/v87 std/v93 ieee/v93 synopsys/v93 std/v08 ieee/v08 src/ieee src/vital95 src/vital2000 src/mentor src/ieee2008 mentor/v93 synopsys/v08; do
\
mkdir -p /usr/local/lib/ghdl/$d; \
install -m 644 -p \
lib/ghdl/$d/* /usr/local/lib/ghdl/$d; \
done
install -m 644 -p \
./dist/ansi_color.sh /usr/local/lib/ghdl/;
mkdir -p /usr/local/lib/ghdl/vendors
install -m 644 -p \
./libraries/vendors/* /usr/local/lib/ghdl/vendors/
install -m 755 -p \
./libraries/vendors/*.sh /usr/local/lib/ghdl/vendors/
gcc -c -o vpi_thunk.o /home/hari/Downloads/ghdl-0.36/./src/grt/vpi_thunk.c -fPIC -O -Wall
gcc -o libghdlvpi.so vpi_thunk.o -shared -Wl,-soname,libghdlvpi.so
install -m 755 -p libghdlvpi.so /usr/local/lib/
install -m 644 -p /home/hari/Downloads/ghdl-0.36/./src/grt/vpi_user.h /usr/local/include/
然而,我面临一些问题并希望安装旧版本。我该如何去做呢?我可以从 /usr/local 中删除二进制文件吗?
操作系统:5.2.8-arch1-1-ARCH
答案1
关于什么make uninstall
?
为什么不使用makepkg
创建包然后安装它呢?这里AUR 上有一些 ghdl 的 PKGBUILD。