본문 바로가기
Research/Linux

TRAC: iniadminplugin 설치

by sunnyan 2009. 8. 21.
728x90

 

[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10/
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10/
error: Download error for http://trac-hacks.org/svn/iniadminplugin/0.10/: (-2, 'Name or service not known')
[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10
Doing subversion checkout from http://trac-hacks.org/svn/iniadminplugin/0.10 to /tmp/easy_install-jaKgnk/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-jaKgnk/0.10/egg-dist-tmp-zsfeLM
zip_safe flag not set; analyzing archive contents...
Adding IniAdmin 0.1 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg
Processing dependencies for IniAdmin==0.1
Finished processing dependencies for IniAdmin==0.1
[root@sw1 trac]# service httpd restart
httpd 를 정지 중:                                          [  OK  ]
httpd (을)를 시작합니다:                                   [  OK  ]
[root@sw1 trac]#

 

이렇게 하고 접속했더니.... Webadmin에서 General-plugins 항목에는 IniAdmin 0.1 이라고 뜬다.

그래서 체크하고 apply 했는데도, 왼쪽에 trac.ini 라는 메뉴가 생기지 않는다.

그래서 plugin인 설치된 디렉토리를 훑어 봤다....


[root@sw1 trac]# ll /usr/lib/python2.5/site-packages/
합계 1104
drwxr-xr-x  2 root root   4096 2009-08-12 02:15 Alacarte
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 BitTorrent
-rw-r--r--  1 root root    238 2008-08-21 07:00 BitTorrent-4.4.0-py2.5.egg-info
-rw-r--r--  1 root root   5735 2009-08-21 19:52 IniAdmin-0.1-py2.5.egg
drwxr-xr-x 12 root root   4096 2009-08-11 18:57 OpenGL
-rw-r--r--  1 root root    296 2008-06-14 15:48 Paste-1.7.1-py2.5-nspkg.pth
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 Paste-1.7.1-py2.5.egg-info
-rw-r--r--  1 root root    683 2009-01-02 10:27 PyOpenGL-3.0.0b8-py2.5.egg-info
-rw-r--r--  1 root root    439 2008-01-08 09:07 Reportlab-2.1-py2.5.egg-info
-rw-r--r--  1 root root  39304 2009-08-12 17:40 TracAccountManager-0.1.3dev_r5273-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-12 17:34 TracWebAdmin-0.1.2dev_r4429-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi_discover
drwxr-xr-x  2 root root   4096 2009-08-11 19:14 createrepo
drwxr-xr-x  2 root root   4096 2009-08-11 19:16 cupshelpers
-rw-r--r--  1 root root    231 2009-03-26 03:55 cupshelpers-1.0-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-12 02:07 dbus
-rw-r--r--  1 root root     33 2008-09-17 00:35 dbus_bindings.py
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyc
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyo
-rw-r--r--  1 root root    285 2009-08-21 19:52 easy-install.pth
drwxr-xr-x  7 root root   4096 2009-08-11 19:10 glchess
drwxr-xr-x  3 root root   4096 2009-08-11 19:10 gnome_sudoku
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 iniparse
-rw-r--r--  1 root root   1085 2008-12-07 16:05 iniparse-0.2.4-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 invest
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 khashmir
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 packagekit
drwxr-xr-x  7 root root   4096 2009-08-12 02:08 paste
-rw-r--r--  1 root root  83956 2008-11-24 05:15 pkg_resources.py
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyc
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyo
drwxr-xr-x  3 root root   4096 2009-08-11 19:14 preupgrade
drwxr-xr-x 10 root root   4096 2009-08-12 02:08 reportlab
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 rpmUtils
drwxr-xr-x  4 root root   4096 2009-08-12 19:01 scsamba
-rw-r--r--  1 root root    182 2009-05-28 18:53 scsamba-1.2.76-py2.5.egg-info
-rw-r--r--  1 root root    187 2009-05-28 18:53 scsamba.dbus-1.2.76-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-11 19:16 scservices
-rw-r--r--  1 root root    186 2008-12-10 22:59 scservices-0.99.28-py2.5.egg-info
-rw-r--r--  1 root root    191 2008-12-10 22:59 scservices.dbus-0.99.28-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 setroubleshoot
drwxr-xr-x  3 root root   4096 2009-08-11 18:56 setuptools
-rw-r--r--  1 root root 328025 2009-08-12 17:38 setuptools-0.6c9-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 setuptools-0.6c9-py2.5.egg-info
-rw-r--r--  1 root root     29 2009-08-12 17:38 setuptools.pth
-rw-r--r--  1 root root   2362 2008-11-24 05:15 site.py
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyc
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyo
drwxr-xr-x  5 root root   4096 2009-08-12 02:08 slip
-rw-r--r--  1 root root    179 2008-10-16 00:02 slip-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    184 2008-10-16 00:02 slip.dbus-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    183 2008-10-16 00:02 slip.gtk-0.1.15-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-11 19:00 sos
-rw-r--r--  1 root root    221 2009-07-24 01:06 sos-1.8-py2.5.egg-info
drwxr-xr-x 11 root root   4096 2009-08-12 15:17 trac
-rw-r--r--  1 root root    538 2008-06-23 12:11 trac-0.10.5-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 urlgrabber
-rw-r--r--  1 root root   2232 2008-10-15 13:14 urlgrabber-3.0.0-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-12 17:34 webadmin
-rw-r--r--  1 root root  10189 2009-05-22 19:47 wireshark_be.py
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyc
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyo
-rw-r--r--  1 root root  77873 2009-05-22 19:47 wireshark_gen.py
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyc
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyo
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 yum
drwxr-xr-x  2 root root   4096 2009-08-11 18:39 yumgui

 

그리고 다시 plugin을 받아봤다...


[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10
Doing subversion checkout from http://trac-hacks.org/svn/iniadminplugin/0.10 to /tmp/easy_install-x-pfuv/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-x-pfuv/0.10/egg-dist-tmp-ODfh6s
zip_safe flag not set; analyzing archive contents...
IniAdmin 0.1 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg
Processing dependencies for IniAdmin==0.1
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 8, in <module>
    load_entry_point('setuptools==0.6c9', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1671, in main
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1659, in with_ei_usage
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 1675, in <lambda>
  File "/usr/lib64/python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib64/python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 211, in run
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 422, in easy_install
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 478, in install_item
  File "/usr/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/command/easy_install.py", line 519, in process_distribution
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 529, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2108, in requires
    dm = self._dep_map
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2100, in _dep_map
    for extra,reqs in split_sections(self._get_metadata(name)):
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2519, in split_sections
    for line in yield_lines(s):
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1813, in yield_lines
    for ss in strs:
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2122, in _get_metadata
    for line in self.get_metadata_lines(name):
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1140, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1137, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1197, in _get
    return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg

 

에러가 뜬다... 그래서 다시 시도...


[root@sw1 trac]# easy_install http://trac-hacks.org/svn/iniadminplugin/0.10/
Downloading http://trac-hacks.org/svn/iniadminplugin/0.10/
Doing subversion checkout from http://trac-hacks.org/svn/iniadminplugin/0.10/ to /tmp/easy_install-ejUJVQ/0.10
Processing 0.10
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-ejUJVQ/0.10/egg-dist-tmp-0GrDAp
zip_safe flag not set; analyzing archive contents...
IniAdmin 0.1 is already the active version in easy-install.pth

Installed /usr/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg
Processing dependencies for IniAdmin==0.1
Finished processing dependencies for IniAdmin==0.1

 

이번엔 성공....

 

다시 디렉토리를 살펴봄...

 

[root@sw1 trac]# ll /usr/lib/python2.5/site-packages/
합계 1104
drwxr-xr-x  2 root root   4096 2009-08-12 02:15 Alacarte
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 BitTorrent
-rw-r--r--  1 root root    238 2008-08-21 07:00 BitTorrent-4.4.0-py2.5.egg-info
-rw-r--r--  1 root root   5736 2009-08-21 20:31 IniAdmin-0.1-py2.5.egg
drwxr-xr-x 12 root root   4096 2009-08-11 18:57 OpenGL
-rw-r--r--  1 root root    296 2008-06-14 15:48 Paste-1.7.1-py2.5-nspkg.pth
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 Paste-1.7.1-py2.5.egg-info
-rw-r--r--  1 root root    683 2009-01-02 10:27 PyOpenGL-3.0.0b8-py2.5.egg-info
-rw-r--r--  1 root root    439 2008-01-08 09:07 Reportlab-2.1-py2.5.egg-info
-rw-r--r--  1 root root  39304 2009-08-12 17:40 TracAccountManager-0.1.3dev_r5273-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-12 17:34 TracWebAdmin-0.1.2dev_r4429-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 avahi_discover
drwxr-xr-x  2 root root   4096 2009-08-11 19:14 createrepo
drwxr-xr-x  2 root root   4096 2009-08-11 19:16 cupshelpers
-rw-r--r--  1 root root    231 2009-03-26 03:55 cupshelpers-1.0-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-12 02:07 dbus
-rw-r--r--  1 root root     33 2008-09-17 00:35 dbus_bindings.py
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyc
-rw-r--r--  2 root root    185 2008-09-17 00:35 dbus_bindings.pyo
-rw-r--r--  1 root root    285 2009-08-21 19:52 easy-install.pth
drwxr-xr-x  7 root root   4096 2009-08-11 19:10 glchess
drwxr-xr-x  3 root root   4096 2009-08-11 19:10 gnome_sudoku
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 iniparse
-rw-r--r--  1 root root   1085 2008-12-07 16:05 iniparse-0.2.4-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:10 invest
drwxr-xr-x  2 root root   4096 2009-08-12 02:09 khashmir
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 packagekit
drwxr-xr-x  7 root root   4096 2009-08-12 02:08 paste
-rw-r--r--  1 root root  83956 2008-11-24 05:15 pkg_resources.py
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyc
-rw-r--r--  2 root root  89701 2008-11-24 05:15 pkg_resources.pyo
drwxr-xr-x  3 root root   4096 2009-08-11 19:14 preupgrade
drwxr-xr-x 10 root root   4096 2009-08-12 02:08 reportlab
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 rpmUtils
drwxr-xr-x  4 root root   4096 2009-08-12 19:01 scsamba
-rw-r--r--  1 root root    182 2009-05-28 18:53 scsamba-1.2.76-py2.5.egg-info
-rw-r--r--  1 root root    187 2009-05-28 18:53 scsamba.dbus-1.2.76-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-11 19:16 scservices
-rw-r--r--  1 root root    186 2008-12-10 22:59 scservices-0.99.28-py2.5.egg-info
-rw-r--r--  1 root root    191 2008-12-10 22:59 scservices.dbus-0.99.28-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-11 19:18 setroubleshoot
drwxr-xr-x  3 root root   4096 2009-08-11 18:56 setuptools
-rw-r--r--  1 root root 328025 2009-08-12 17:38 setuptools-0.6c9-py2.5.egg
drwxr-xr-x  2 root root   4096 2009-08-11 18:56 setuptools-0.6c9-py2.5.egg-info
-rw-r--r--  1 root root     29 2009-08-12 17:38 setuptools.pth
-rw-r--r--  1 root root   2362 2008-11-24 05:15 site.py
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyc
-rw-r--r--  2 root root   1771 2008-11-24 05:15 site.pyo
drwxr-xr-x  5 root root   4096 2009-08-12 02:08 slip
-rw-r--r--  1 root root    179 2008-10-16 00:02 slip-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    184 2008-10-16 00:02 slip.dbus-0.1.15-py2.5.egg-info
-rw-r--r--  1 root root    183 2008-10-16 00:02 slip.gtk-0.1.15-py2.5.egg-info
drwxr-xr-x  3 root root   4096 2009-08-11 19:00 sos
-rw-r--r--  1 root root    221 2009-07-24 01:06 sos-1.8-py2.5.egg-info
drwxr-xr-x 11 root root   4096 2009-08-12 15:17 trac
-rw-r--r--  1 root root    538 2008-06-23 12:11 trac-0.10.5-py2.5.egg-info
drwxr-xr-x  2 root root   4096 2009-08-12 02:08 urlgrabber
-rw-r--r--  1 root root   2232 2008-10-15 13:14 urlgrabber-3.0.0-py2.5.egg-info
drwxr-xr-x  4 root root   4096 2009-08-12 17:34 webadmin
-rw-r--r--  1 root root  10189 2009-05-22 19:47 wireshark_be.py
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyc
-rw-r--r--  2 root root   6197 2009-05-22 19:47 wireshark_be.pyo
-rw-r--r--  1 root root  77873 2009-05-22 19:47 wireshark_gen.py
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyc
-rw-r--r--  2 root root  53800 2009-05-22 19:47 wireshark_gen.pyo
drwxr-xr-x  2 root root   4096 2009-08-11 19:03 yum
drwxr-xr-x  2 root root   4096 2009-08-11 18:39 yumgui

 

어라... 1 바이트가 늘어났네????

음... 다시 실행해보자...


[root@sw1 trac]# service httpd restart
httpd 를 정지 중:                                          [  OK  ]
httpd (을)를 시작합니다:   

 

어랏~ 된다.... 쩝~   1 바이트 모야?????

 

728x90