ソースからビルドしたPython 2.7.3 アンインストール失敗

プログラミング言語Python

 状態:未解決  閲覧数:753  投稿日:2017-05-11  更新日:2017-05-11
Python 2.7.3 インストール

cd /var/tmp
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
tar xvzf Python-2.7.3.tgz
cd Python-2.7.3
./configure
make
sudo make uninstall



make: *** ターゲット `uninstall' を make するルールがありません. 中止.

 閲覧数:955 投稿日:2017-05-11 更新日:2017-05-11 

make uninstall


実行しても、必ずアンインストール出来るとは限らない
$ sudo make uninstall
make: *** ターゲット `uninstall' を make するルールがありません.  中止.


$ make -n install

 閲覧数:151 投稿日:2017-05-11 更新日:2017-05-11 
$ make -n install
for i in /usr/local/bin /usr/local/lib; \
do \
if test ! -d $i; then \
echo "Creating directory $i"; \
/usr/bin/install -c -d -m 755 $i; \
else true; \
fi; \
done
/usr/bin/install -c python /usr/local/bin/python2.7
if test -f libpython2.7.a; then \
if test -n "" ; then \
/usr/bin/install -c -m 555 /usr/local/bin; \
else \
/usr/bin/install -c -m 555 libpython2.7.a /usr/local/lib/libpython2.7.a; \
if test libpython2.7.a != libpython2.7.a; then \
(cd /usr/local/lib; ln -sf libpython2.7.a libpython2.7.a) \
fi \
fi; \
else true; \
fi
case $MAKEFLAGS in \
*s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
for i in /usr/local/lib /usr/local/lib/python2.7; \
do \
if test ! -d $i; then \
echo "Creating directory $i"; \
/usr/bin/install -c -d -m 755 $i; \
else true; \
fi; \
done
for d in lib-tk lib-tk/test lib-tk/test/test_tkinter lib-tk/test/test_ttk site-packages test test/data test/cjkencodings test/decimaltestdata test/xmltestdata test/subprocessdata test/tracedmodules encodings compiler hotshot email email/mime email/test email/test/data json json/tests sqlite3 sqlite3/test logging bsddb bsddb/test csv importlib wsgiref lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons distutils distutils/command distutils/tests xml xml/dom xml/etree xml/parsers xml/sax multiprocessing multiprocessing/dummy unittest unittest/test lib-old curses pydoc_data plat-linux2 ; \
do \
a=./Lib/$d; \
if test ! -d $a; then continue; else true; fi; \
b=/usr/local/lib/python2.7/$d; \
if test ! -d $b; then \
echo "Creating directory $b"; \
/usr/bin/install -c -d -m 755 $b; \
else true; \
fi; \
done
for i in ./Lib/*.py ./Lib/*.doc ./Lib/*.egg-info ; \
do \
if test -x $i; then \
/usr/bin/install -c $i /usr/local/lib/python2.7; \
echo /usr/bin/install -c $i /usr/local/lib/python2.7; \
else \
/usr/bin/install -c -m 644 $i /usr/local/lib/python2.7; \
echo /usr/bin/install -c -m 644 $i /usr/local/lib/python2.7; \
fi; \
done
for d in lib-tk lib-tk/test lib-tk/test/test_tkinter lib-tk/test/test_ttk site-packages test test/data test/cjkencodings test/decimaltestdata test/xmltestdata test/subprocessdata test/tracedmodules encodings compiler hotshot email email/mime email/test email/test/data json json/tests sqlite3 sqlite3/test logging bsddb bsddb/test csv importlib wsgiref lib2to3 lib2to3/fixes lib2to3/pgen2 lib2to3/tests lib2to3/tests/data lib2to3/tests/data/fixers lib2to3/tests/data/fixers/myfixes ctypes ctypes/test ctypes/macholib idlelib idlelib/Icons distutils distutils/command distutils/tests xml xml/dom xml/etree xml/parsers xml/sax multiprocessing multiprocessing/dummy unittest unittest/test lib-old curses pydoc_data plat-linux2 ; \
do \
a=./Lib/$d; \
if test ! -d $a; then continue; else true; fi; \
if test `ls $a | wc -l` -lt 1; then continue; fi; \
b=/usr/local/lib/python2.7/$d; \
for i in $a/*; \
do \
case $i in \
*CVS) ;; \
*.py[co]) ;; \
*.orig) ;; \
*~) ;; \
*) \
if test -d $i; then continue; fi; \
if test -x $i; then \
echo /usr/bin/install -c $i $b; \
/usr/bin/install -c $i $b; \
else \
echo /usr/bin/install -c -m 644 $i $b; \
/usr/bin/install -c -m 644 $i $b; \
fi;; \
esac; \
done; \
done
/usr/bin/install -c -m 644 ./LICENSE /usr/local/lib/python2.7/LICENSE.txt
if test -d /usr/local/lib/python2.7/distutils/tests; then \
/usr/bin/install -c -m 644 ./Modules/xxmodule.c \
/usr/local/lib/python2.7/distutils/tests ; \
fi
PYTHONPATH=/usr/local/lib/python2.7 \
./python -Wi -tt /usr/local/lib/python2.7/compileall.py \
-d /usr/local/lib/python2.7 -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/usr/local/lib/python2.7
PYTHONPATH=/usr/local/lib/python2.7 \
./python -Wi -tt -O /usr/local/lib/python2.7/compileall.py \
-d /usr/local/lib/python2.7 -f \
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
/usr/local/lib/python2.7
PYTHONPATH=/usr/local/lib/python2.7 \
./python -Wi -t /usr/local/lib/python2.7/compileall.py \
-d /usr/local/lib/python2.7/site-packages -f \
-x badsyntax /usr/local/lib/python2.7/site-packages
PYTHONPATH=/usr/local/lib/python2.7 \
./python -Wi -t -O /usr/local/lib/python2.7/compileall.py \
-d /usr/local/lib/python2.7/site-packages -f \
-x badsyntax /usr/local/lib/python2.7/site-packages
PYTHONPATH=/usr/local/lib/python2.7 \
./python -Wi -t -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.PatternCompiler()"
for i in /usr/local/include /usr/local/include /usr/local/include/python2.7 /usr/local/include/python2.7; \
do \
if test ! -d $i; then \
echo "Creating directory $i"; \
/usr/bin/install -c -d -m 755 $i; \
else true; \
fi; \
done
for i in ./Include/*.h; \
do \
echo /usr/bin/install -c -m 644 $i /usr/local/include/python2.7; \
/usr/bin/install -c -m 644 $i /usr/local/include/python2.7; \
done
/usr/bin/install -c -m 644 pyconfig.h /usr/local/include/python2.7/pyconfig.h
# Substitution happens here, as the completely-expanded BINDIR
# is not available in configure
sed -e "s,@EXENAME@,/usr/local/bin/python2.7," < ./Misc/python-config.in >python-config
for i in /usr/local/lib /usr/local/lib/python2.7 /usr/local/lib/python2.7/config /usr/local/lib/pkgconfig; \
do \
if test ! -d $i; then \
echo "Creating directory $i"; \
/usr/bin/install -c -d -m 755 $i; \
else true; \
fi; \
done
if test -d libpython2.7.a; then :; else \
if test "no-framework" = no-framework; then \
if test ".so" = .dll; then \
/usr/bin/install -c -m 644 libpython2.7.a /usr/local/lib/python2.7/config ; \
else \
/usr/bin/install -c -m 644 libpython2.7.a /usr/local/lib/python2.7/config/libpython2.7.a ; \
ranlib /usr/local/lib/python2.7/config/libpython2.7.a ; \
fi; \
else \
echo Skip install of libpython2.7.a - use make frameworkinstall; \
fi; \
fi
/usr/bin/install -c -m 644 Modules/config.c /usr/local/lib/python2.7/config/config.c
/usr/bin/install -c -m 644 Modules/python.o /usr/local/lib/python2.7/config/python.o
/usr/bin/install -c -m 644 ./Modules/config.c.in /usr/local/lib/python2.7/config/config.c.in
/usr/bin/install -c -m 644 Makefile /usr/local/lib/python2.7/config/Makefile
/usr/bin/install -c -m 644 Modules/Setup /usr/local/lib/python2.7/config/Setup
/usr/bin/install -c -m 644 Modules/Setup.local /usr/local/lib/python2.7/config/Setup.local
/usr/bin/install -c -m 644 Modules/Setup.config /usr/local/lib/python2.7/config/Setup.config
/usr/bin/install -c -m 644 Misc/python.pc /usr/local/lib/pkgconfig/python-2.7.pc
/usr/bin/install -c ./Modules/makesetup /usr/local/lib/python2.7/config/makesetup
/usr/bin/install -c ./install-sh /usr/local/lib/python2.7/config/install-sh
/usr/bin/install -c python-config /usr/local/bin/python2.7-config
rm python-config
if [ -s Modules/python.exp -a \
"`echo linux2 | sed 's/^\(...\).*/\1/'`" = "aix" ]; then \
echo; echo "Installing support files for building shared extension modules on AIX:"; \
/usr/bin/install -c -m 644 Modules/python.exp \
/usr/local/lib/python2.7/config/python.exp; \
echo; echo "/usr/local/lib/python2.7/config/python.exp"; \
/usr/bin/install -c ./Modules/makexp_aix \
/usr/local/lib/python2.7/config/makexp_aix; \
echo "/usr/local/lib/python2.7/config/makexp_aix"; \
/usr/bin/install -c ./Modules/ld_so_aix \
/usr/local/lib/python2.7/config/ld_so_aix; \
echo "/usr/local/lib/python2.7/config/ld_so_aix"; \
echo; echo "See Misc/AIX-NOTES for details."; \
else true; \
fi
case "linux2" in beos*) \
echo; echo "Installing support files for building shared extension modules on BeOS:"; \
/usr/bin/install -c -m 644 Misc/BeOS-NOTES /usr/local/lib/python2.7/config/README; \
echo; echo "/usr/local/lib/python2.7/config/README"; \
/usr/bin/install -c Modules/ar_beos /usr/local/lib/python2.7/config/ar_beos; \
echo "/usr/local/lib/python2.7/config/ar_beos"; \
/usr/bin/install -c Modules/ld_so_beos /usr/local/lib/python2.7/config/ld_so_beos; \
echo "/usr/local/lib/python2.7/config/ld_so_beos"; \
echo; echo "See Misc/BeOS-NOTES for details."; \
;; \
esac
./python -E ./setup.py install \
--prefix=/usr/local \
--install-scripts=/usr/local/bin \
--install-platlib=/usr/local/lib/python2.7/lib-dynload \
--root=/
for i in X ; do \
if test $i != X; then \
echo /usr/bin/install -c -m 555 $i /usr/local/lib/python2.7/lib-dynload/`basename $i`; \
/usr/bin/install -c -m 555 $i /usr/local/lib/python2.7/lib-dynload/`basename $i`; \
fi; \
done
if test -f /usr/local/bin/python -o -h /usr/local/bin/python; \
then rm -f /usr/local/bin/python; \
else true; \
fi
(cd /usr/local/bin; ln -s python2 python)
rm -f /usr/local/bin/python2
(cd /usr/local/bin; ln -s python2.7 python2)
rm -f /usr/local/bin/python2-config
(cd /usr/local/bin; ln -s python2.7-config python2-config)
rm -f /usr/local/bin/python-config
(cd /usr/local/bin; ln -s python2-config python-config)
test -d /usr/local/lib/pkgconfig || /usr/bin/install -c -d -m 755 /usr/local/lib/pkgconfig
rm -f /usr/local/lib/pkgconfig/python2.pc
(cd /usr/local/lib/pkgconfig; ln -s python-2.7.pc python2.pc)
rm -f /usr/local/lib/pkgconfig/python.pc
(cd /usr/local/lib/pkgconfig; ln -s python2.pc python.pc)
for i in /usr/local/share/man /usr/local/share/man/man1; \
do \
if test ! -d $i; then \
echo "Creating directory $i"; \
/usr/bin/install -c -d -m 755 $i; \
else true; \
fi; \
done
/usr/bin/install -c -m 644 ./Misc/python.man \
/usr/local/share/man/man1/python2.7.1



YumでインストールしたPython2.6.6アンインストール失敗

mod_wsgi3.2インストール / yum install



週間人気ページランキング / 9-19 → 9-25
順位 ページタイトル抜粋 アクセス数
1 Nginx設定。エラーログレベル | Nginx(Webサーバ) 16
2 PHP実行ユーザ設定 / CentOS6 / Apache | PHP(プログラミング言語) 15
3 PHPのmb_send_mail関数でメール送信できない | メール処理システム 11
4 9回目-13.MySQL5.7.21設定 | CentOS 7 2週間無料のお試し期間 9回目(さくらVPS) 10
5 tar: これは tar アーカイブではないようです 8
5 ImageMagick と imagick の違い | ImageMagick(ソフトウェアスイート) 8
5 さくらVPS0 8
6 manページ日本語表示 | CentOS 7 (CentOS) 7
6 Python 3.5 アンインストール / yum remove | Python(プログラミング言語) 7
7 ABRT により 問題が検出されました | CentOS 7 (CentOS) 6
7 Reached target Shutdown メッセージが表示されたあと、シャットダウンまたは再起動プロセスがハングアップする | CentOS 7 (CentOS) 6
7 PHPファイルでchmodエラー | PHP(プログラミング言語) 6
7 echo と cat の違い 6
8 FFmpeg 2.8.15 を yum インストール | ソフトウェアスイート 5
8 「設定ファイルに、暗号化 (blowfish_secret) 用の非公開パスフレーズの設定を必要とするようになりました。」対応 5
8 「CentOS6」から「CentOS7」への移行 | CentOS 7 (CentOS) 5
8 「さくらVPS」で、「CentOS6」を「CentOS7」へ変更するためには? | CentOS 7 2週間無料のお試し期間 Link(さくらVPS) 5
9 6回目-10.Nginxでバーチャルホスト設定確認 | CentOS 7 2週間無料のお試し期間 6回目(さくらVPS) 4
9 cronで定期実行しているphpファイルを、コマンドライン経由で即時実行する | cron(Linuxコマンド) 4
9 MySQL 5.5 から 5.6 へのアップグレード | MySQL(データベース) 4
2021/9/26 1:01 更新