家のVirtual PCにCentOSを入れてみた。
バージョン管理ソフト「Mercurial」のインストール手順メモ
pythonをインスートル
python-develも一緒にいれます。
1 2 3 |
<textarea class="html" cols="60" rows="5" name="code"> # yum -y install python python-devel </textarea> |
python-setuptoolsをインストール
これがあると簡単にMercurialを入れることができます。
1 2 3 |
<textarea class="html" cols="60" rows="5" name="code"> # yum install python-setuptools </textarea> |
gccをインスートル
gccがない場合はいれましょう。
※CentOS5.3で試したが初期では入っていなかった。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
<textarea class="html" cols="60" rows="5" name="code"> [root@localhost sources]# yum install gcc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: ftp-stud.fht-esslingen.de * base: www.ftp.ne.jp * updates: www.ftp.ne.jp * addons: www.ftp.ne.jp * extras: www.ftp.ne.jp Setting up Install Process Parsing package install arguments Resolving Dependencies --> Running transaction check ---> Package gcc.i386 0:4.1.2-44.el5 set to be updated --> Processing Dependency: libgomp >= 4.1.2-44.el5 for package: gcc --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc --> Running transaction check ---> Package libgomp.i386 0:4.3.2-7.el5 set to be updated ---> Package glibc-devel.i386 0:2.5-34.el5_3.1 set to be updated --> Processing Dependency: glibc-headers = 2.5-34.el5_3.1 for package: glibc-devel --> Processing Dependency: glibc = 2.5-34.el5_3.1 for package: glibc-devel --> Processing Dependency: glibc-headers for package: glibc-devel --> Running transaction check --> Processing Dependency: glibc = 2.5-34 for package: nscd ---> Package glibc-headers.i386 0:2.5-34.el5_3.1 set to be updated --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers --> Processing Dependency: kernel-headers for package: glibc-headers ---> Package glibc.i686 0:2.5-34.el5_3.1 set to be updated --> Processing Dependency: glibc-common = 2.5-34.el5_3.1 for package: glibc --> Running transaction check ---> Package kernel-headers.i386 0:2.6.18-164.el5 set to be updated ---> Package nscd.i386 0:2.5-34.el5_3.1 set to be updated ---> Package glibc-common.i386 0:2.5-34.el5_3.1 set to be updated --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================================================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================================================================================================================================================================================= Installing: gcc i386 4.1.2-44.el5 base 5.2 M Updating: glibc i686 2.5-34.el5_3.1 updates 5.2 M glibc-common i386 2.5-34.el5_3.1 updates 16 M nscd i386 2.5-34.el5_3.1 updates 159 k Installing for dependencies: glibc-devel i386 2.5-34.el5_3.1 updates 2.0 M glibc-headers i386 2.5-34.el5_3.1 updates 598 k kernel-headers i386 2.6.18-164.el5 updates 993 k libgomp i386 4.3.2-7.el5 base 67 k Transaction Summary ============================================================================================================================================================================================================================================================================================================================= Install 5 Package(s) Update 3 Package(s) Remove 0 Package(s) Total download size: 31 M Is this ok [y/N]: y Downloading Packages: (1/8): libgomp-4.3.2-7.el5.i386.rpm | 67 kB 00:00 (2/8): nscd-2.5-34.el5_3.1.i386.rpm | 159 kB 00:00 (3/8): glibc-headers-2.5-34.el5_3.1.i386.rpm | 598 kB 00:01 (4/8): kernel-headers-2.6.18-164.el5.i386.rpm | 993 kB 00:01 (5/8): glibc-devel-2.5-34.el5_3.1.i386.rpm | 2.0 MB 00:03 (6/8): glibc-2.5-34.el5_3.1.i686.rpm | 5.2 MB 00:10 (7/8): gcc-4.1.2-44.el5.i386.rpm | 5.2 MB 00:08 (8/8): glibc-common-2.5-34.el5_3.1.i386.rpm | 16 MB 00:13 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 244 kB/s | 31 MB 02:08 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : glibc-common [ 1/11] Installing : kernel-headers [ 2/11] Updating : glibc [ 3/11] Installing : glibc-headers [ 4/11] Installing : glibc-devel [ 5/11] Installing : libgomp [ 6/11] Updating : nscd [ 7/11] Installing : gcc [ 8/11] Cleanup : glibc-common [ 9/11] Cleanup : nscd [10/11] Cleanup : glibc [11/11] Installed: gcc.i386 0:4.1.2-44.el5 Dependency Installed: glibc-devel.i386 0:2.5-34.el5_3.1 glibc-headers.i386 0:2.5-34.el5_3.1 kernel-headers.i386 0:2.6.18-164.el5 libgomp.i386 0:4.3.2-7.el5 Updated: glibc.i686 0:2.5-34.el5_3.1 glibc-common.i386 0:2.5-34.el5_3.1 nscd.i386 0:2.5-34.el5_3.1 Complete! </textarea> |
Mercurialをインストール
easy_installコマンドを「easy_install mercurial」
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<textarea class="html" cols="60" rows="5" name="code"> [root@localhost sources]# easy_install mercurial Searching for mercurial Reading http://cheeseshop.python.org/pypi/mercurial/ Couldn't find index page for 'mercurial' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://cheeseshop.python.org/pypi/ Reading http://cheeseshop.python.org/pypi/Mercurial/1.3.1 Reading http://mercurial.selenic.com/ Best match: mercurial 1.3.1 Downloading http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz Processing mercurial-1.3.1.tar.gz Running mercurial-1.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-oZJwAX/mercurial-1.3.1/egg-dist-tmp-3DR4y0 zip_safe flag not set; analyzing archive contents... mercurial.lsprof: module references __file__ mercurial.extensions: module references __file__ mercurial.templater: module references __file__ mercurial.i18n: module references __file__ Adding mercurial 1.3.1 to easy-install.pth file Installing hg script to /usr/bin Installed /usr/lib/python2.4/site-packages/mercurial-1.3.1-py2.4-linux-i686.egg Processing dependencies for mercurial </textarea> |
1 2 3 |
<textarea class="html" cols="60" rows="5" name="code"> </textarea> |
1 2 3 |
<textarea class="html" cols="60" rows="5" name="code"> </textarea> |