site-python-install howto

| No Comments | No TrackBacks

在使用RRDTool的Python Lib库的时候, 每次都要import rrdtool-python-lib的绝对路径

import sys


import rrdtool

import tempfile

rrdpython文档中说只要运行site-python-install这个命令就可以不用append那么长了囧, 作为一个python初心者我只能updatedb然后locate site-python-install. 然后CentOS告诉我没有...
G, 在rrdtool 1.3.1的Makefile中发现了这么一段.
site-perl-inst: site-perl-install

site-perl-install: all bindings/perl-piped/Makefile bindings/perl-shared/Makefile

cd bindings/perl-piped && $(MAKE) install

cd bindings/perl-shared && $(MAKE) install

site-tcl-install: all

cd bindings/tcl && $(MAKE) tcl-install

site-python-install: all

cd bindings/python && $(PYTHON) install

OK, 在安装完之后,进入/PATH/TO/RRDTOOL-VERSION-SRC/bindings/python目录

No TrackBacks

TrackBack URL:

Leave a comment

About this Entry

This page contains a single entry by suchasplus published on August 18, 2008 6:01 PM.

索饭的Matrix - PlayStation Home was the previous entry in this blog.

Linux下Tomcat & JVM 优化[实测] is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.


OpenID accepted here Learn more about OpenID
Powered by Movable Type 5.2.7