作者 主題: [分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )  (閱讀 21411 次)

0 會員 與 1 訪客 正在閱讀本文。

Pail

  • 俺是博士!
  • *****
  • 文章數: 1040
  • 性別: 男
    • 檢視個人資料
rrdtool-1.2.10 的安裝...

(0) 關於我:
   pail_lo@yahoo.com.tw
   
(1) 我的環境:
    OS: Fedora core 4 ( without any patch )
   
(2) 準備的套件:
    cgilib-0.5.tar.gz ( http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/libs/ )
    zlib-1.2.2.tar.gz
    freetype-2.1.9.tar.gz
    libart_lgpl-2.3.17.tar.gz
    libart_lgpl-2.3.17.tar.gz
    rrdtool-1.2.10.tar.gz ( http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/ )

(3) 參考資料: rrdtool-1.2.10/doc/rrdbuild.txt
    基本上, 這份文件已經寫的很詳細了, 只是個人習慣, 會留下自己的操作紀錄.
    一來做紀念, 一來我懶, 為了下次安裝方便~ :D

(4) 操作記錄:

   # Declare
   export BUILD_DIR=/tmp/rrdtool

   # Install cgilib
   tar zxf cgilib-0.5.tar.gz
   cd cgilib-0.5
   make CC=gcc CFLAGS="-O3 -fPIC -I."
   mkdir -p $BUILD_DIR/lb/include
       cp *.h $BUILD_DIR/lb/include
    mkdir -p $BUILD_DIR/lb/lib
   cp libcgi* $BUILD_DIR/lb/lib
   cd ..

   # Install zlib
   tar zxf zlib-1.2.2.tar.gz
   cd zlib-1.2.2
   env CFLAGS="-O3 -fPIC" ./configure --prefix=$BUILD_DIR/lb
   make
       make install
   cd ..

   # Install libpng
   tar zxf libpng-1.2.8-config.tar.gz
   cd libpng-1.2.8-config
   env CPPFLAGS="-I$BUILD_DIR/lb/include" LDFLAGS="-L$BUILD_DIR/lb/lib" CFLAGS="-O3 -fPIC" ./configure --disable-shared --prefix=$BUILD_DIR/lb
       make
       make install
   cd ..

   # Install freetype
   tar zxf freetype-2.1.9.tar.gz
   cd freetype-2.1.9
   env CPPFLAGS="-I$BUILD_DIR/lb/include" LDFLAGS="-L$BUILD_DIR/lb/lib" CFLAGS="-O3 -fPIC" ./configure --disable-shared --prefix=$BUILD_DIR/lb
       make
       make install
   cd ..

   ## Install libart_lgpl
   tar zxf libart_lgpl-2.3.17.tar.gz
   cd libart_lgpl-2.3.17
   env CFLAGS="-O3 -fPIC" ./configure --disable-shared --prefix=$BUILD_DIR/lb
       make
       make install
   cd ..

   # Install rrdtool
   tar zxf rrdtool-1.2.10
   cd rrdtool-1.2.10
   IR=-I$BUILD_DIR/lb/include
   CPPFLAGS="$IR $IR/libart-2.0 $IR/freetype2 $IR/libpng"
   LDFLAGS="-L$BUILD_DIR/lb/lib"
   CFLAGS=-O3
   export CPPFLAGS LDFLAGS CFLAGS
   ./configure prefix=/usr/local/rrdtool

   ## Configure 完後, 要看到類似底下的 訊息, 才算 ok.          
   ----------------------------------------------
          With MMAP IO: yes
          Perl Modules: perl_piped perl_shared
           Perl Binary: /usr/bin/perl
          Perl Version: 5.8.6
          Perl Options: PREFIX=/usr/local/rrdtool LIB=/usr/local/rrdtool/lib/perl/5.8.6
    Build Tcl Bindings: no
 Build Python Bindings: yes
          Build rrdcgi: yes
       Build librrd MT: yes
   ----------------------------------------------
   make
   make install

(5) 很訝異, 這一版有 for perl 的 library 可以使用!!
    或者在更早期的版本就有了, 但我是在這一版才看到的:D
Pail Luo.
Email: pail.luo@gmail.com

Vin Diesel

  • 可愛的小學生
  • *
  • 文章數: 1
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #1 於: 2005-07-27 09:56 »
----------------------------------------------------------------
Config is DONE!

          With MMAP IO: yes
          Perl Modules: perl_piped perl_shared
          Perl Binary: /usr/bin/perl
          Perl Version: 5.8.5
          Perl Options: PREFIX=/usr/local/rrdtoolLIB=/usr/local/rrdtool/lib/perl/5.8.5
          Build Tcl Bindings: yes  
          Build Python Bindings: yes
          Build rrdcgi: yes
          Build librrd MT: yes


Type 'make' to compile the software and use 'make install' to
install everything to: /usr/local/rrdtool.

       ... that wishlist is NO JOKE. If you find RRDtool useful
make me happy. Go to http://people.ee.ethz.ch/oetiker/wish and
place an order.

                               -- Tobi Oetiker <tobi@oetiker.ch>
----------------------------------------------------------------

大大不知為何你的tcl沒啟動我的有啟動。
因此卡住沒辦法make
還好去tcl的官方網站下載
wget http://nchc.dl.sourceforge.net/sourceforge/tcl/tcl8.4.11-src.tar.gz
並按照How to Compile Tcl Source Releases
已完成安裝。
謝謝你,你真的寫的很詳細,差不多我都複製和貼上就ok了
省了不少時間^^

shwnhuan

  • 可愛的小學生
  • *
  • 文章數: 1
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #2 於: 2005-08-06 23:14 »
樓上的大大........tcl8.4.11-src.tar.gz.....小弟我搞了好幾天, 都快被搞死了... :cry:  :cry:  :cry: ..
能不能請你教教我......我是用Fedora core 3......先謝囉... :D  :D  :D  :D

test4321

  • 憂鬱的高中生
  • ***
  • 文章數: 95
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #3 於: 2005-09-26 15:35 »
請問一個問題

都設好了

打 rrdtool 不是應該叫的到@@?

我叫不到

這正常@@?

還是說要手動copy rrdtool執行檔 到/usr/bin 去?

Pail

  • 俺是博士!
  • *****
  • 文章數: 1040
  • 性別: 男
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #4 於: 2005-09-28 17:02 »
用這個裝的, 預設是裝在 /usr/local/rrdtool/ 底下
 PATH 應該不會有這它才是吧~~
可以建個 symbolic link 過去..
Pail Luo.
Email: pail.luo@gmail.com

Pail

  • 俺是博士!
  • *****
  • 文章數: 1040
  • 性別: 男
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #5 於: 2005-09-28 17:05 »
引述: "pail"
用這個裝的, 預設是裝在 /usr/local/rrdtool/ 底下
 PATH 應該不會有這它才是吧~~
可以建個 symbolic link 過去..


忘了說明...
因為在 ./configure prefix=/usr/local/rrdtool 時,
我把 預設目錄設在這兒...
Pail Luo.
Email: pail.luo@gmail.com

suss

  • 可愛的小學生
  • *
  • 文章數: 2
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #6 於: 2005-11-02 09:21 »
make[3]: Entering directory `/tmp/rrdbuild/rrdtool-1.2.11/bindings/tcl'
gcc -O3  -fPIC -DPIC -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -O3  -fPIC -DPIC -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W -fPIC -I/usr/include -I../../src -c tclrrd.c -DVERSION=\"1.2.11\"
tclrrd.c:15:17: tcl.h: No such file or directory
tclrrd.c:19: error: syntax error before '*' token
tclrrd.c:59: error: syntax error before "ClientData"
tclrrd.c:59: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:59: error: ISO C forbids data definition with no type or storage class
tclrrd.c:60: error: syntax error before '*' token
tclrrd.c:60: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:60: error: ISO C forbids data definition with no type or storage class
tclrrd.c:63: error: syntax error before '{' token
tclrrd.c:66: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:66: warning: initialization makes integer from pointer without a cast
tclrrd.c:66: error: initializer element is not constant
tclrrd.c:66: error: ISO C forbids data definition with no type or storage class
tclrrd.c:67: warning: type defaults to `int' in declaration of `rrd_create'
tclrrd.c:67: warning: parameter names (without types) in function declaration
tclrrd.c:67: error: ISO C forbids data definition with no type or storage class
tclrrd.c:68: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:68: warning: parameter names (without types) in function declaration
tclrrd.c:68: error: conflicting types for 'getopt_cleanup'
tclrrd.c:46: error: previous definition of 'getopt_cleanup' was here
tclrrd.c:68: error: ISO C forbids data definition with no type or storage class
tclrrd.c:70: error: syntax error before "if"
tclrrd.c:73: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:73: error: conflicting types for 'rrd_clear_error'
../../src/rrd.h:124: error: previous declaration of 'rrd_clear_error' was here
tclrrd.c:73: error: conflicting types for 'rrd_clear_error'
../../src/rrd.h:124: error: previous declaration of 'rrd_clear_error' was here
tclrrd.c:73: error: ISO C forbids data definition with no type or storage class
tclrrd.c:74: error: syntax error before "return"
tclrrd.c:84: error: syntax error before "ClientData"
tclrrd.c:84: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:84: error: ISO C forbids data definition with no type or storage class
tclrrd.c:85: error: syntax error before '*' token
tclrrd.c:85: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:85: error: ISO C forbids data definition with no type or storage class
tclrrd.c:88: error: syntax error before '{' token
tclrrd.c:91: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:91: error: redefinition of 'argv2'
tclrrd.c:66: error: previous definition of 'argv2' was here
tclrrd.c:91: warning: initialization makes integer from pointer without a cast
tclrrd.c:91: error: initializer element is not constant
tclrrd.c:91: error: ISO C forbids data definition with no type or storage class
tclrrd.c:92: warning: type defaults to `int' in declaration of `rrd_dump'
tclrrd.c:92: warning: parameter names (without types) in function declaration
tclrrd.c:92: error: ISO C forbids data definition with no type or storage class
tclrrd.c:93: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:93: warning: parameter names (without types) in function declaration
tclrrd.c:93: error: ISO C forbids data definition with no type or storage class
tclrrd.c:97: error: syntax error before "if"
tclrrd.c:100: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:100: error: ISO C forbids data definition with no type or storage class
tclrrd.c:101: error: syntax error before "return"
tclrrd.c:111: error: syntax error before "ClientData"
tclrrd.c:111: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:111: error: ISO C forbids data definition with no type or storage class
tclrrd.c:112: error: syntax error before '*' token
tclrrd.c:112: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:112: error: ISO C forbids data definition with no type or storage class
tclrrd.c:115: error: syntax error before '{' token
tclrrd.c:117: error: conflicting types for 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:117: error: conflicting types for 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:119: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:119: error: conflicting types for 'argv2'
tclrrd.c:117: error: previous declaration of 'argv2' was here
tclrrd.c:119: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:119: warning: initialization makes integer from pointer without a cast
tclrrd.c:119: error: initializer element is not constant
tclrrd.c:119: error: ISO C forbids data definition with no type or storage class
tclrrd.c:120: warning: type defaults to `int' in declaration of `t'
tclrrd.c:120: warning: passing arg 2 of `rrd_last' makes pointer from integer without a cast
tclrrd.c:120: error: initializer element is not constant
tclrrd.c:120: error: ISO C forbids data definition with no type or storage class
tclrrd.c:121: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:121: warning: parameter names (without types) in function declaration
tclrrd.c:121: error: ISO C forbids data definition with no type or storage class
tclrrd.c:124: error: syntax error before "if"
tclrrd.c:127: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:127: error: ISO C forbids data definition with no type or storage class
tclrrd.c:128: error: syntax error before "return"
tclrrd.c:131: error: syntax error before '(' token
tclrrd.c:131: warning: type defaults to `int' in declaration of `Tcl_SetIntObj'
tclrrd.c:131: warning: type defaults to `int' in declaration of `t'
tclrrd.c:131: error: syntax error before ')' token
tclrrd.c:140: error: syntax error before "ClientData"
tclrrd.c:140: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:140: error: ISO C forbids data definition with no type or storage class
tclrrd.c:141: error: syntax error before '*' token
tclrrd.c:141: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:141: error: ISO C forbids data definition with no type or storage class
tclrrd.c:144: error: syntax error before '{' token
tclrrd.c:147: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:147: error: redefinition of 'argv2'
tclrrd.c:119: error: previous definition of 'argv2' was here
tclrrd.c:147: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:147: warning: initialization makes integer from pointer without a cast
tclrrd.c:147: error: initializer element is not constant
tclrrd.c:147: error: ISO C forbids data definition with no type or storage class
tclrrd.c:148: warning: type defaults to `int' in declaration of `rrd_update'
tclrrd.c:148: warning: parameter names (without types) in function declaration
tclrrd.c:148: error: ISO C forbids data definition with no type or storage class
tclrrd.c:149: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:149: warning: parameter names (without types) in function declaration
tclrrd.c:149: error: ISO C forbids data definition with no type or storage class
tclrrd.c:151: error: syntax error before "if"
tclrrd.c:154: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:154: error: ISO C forbids data definition with no type or storage class
tclrrd.c:155: error: syntax error before "return"
tclrrd.c:165: error: syntax error before "ClientData"
tclrrd.c:165: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:165: error: ISO C forbids data definition with no type or storage class
tclrrd.c:166: error: syntax error before '*' token
tclrrd.c:166: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:166: error: ISO C forbids data definition with no type or storage class
tclrrd.c:169: error: syntax error before '{' token
tclrrd.c:174: error: syntax error before '*' token
tclrrd.c:174: warning: type defaults to `int' in declaration of `listPtr'
tclrrd.c:174: error: ISO C forbids data definition with no type or storage class
tclrrd.c:176: error: conflicting types for 'argv2'
tclrrd.c:147: error: previous definition of 'argv2' was here
tclrrd.c:176: error: conflicting types for 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:178: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:178: error: conflicting types for 'argv2'
tclrrd.c:176: error: previous declaration of 'argv2' was here
tclrrd.c:178: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:178: warning: initialization makes integer from pointer without a cast
tclrrd.c:178: error: initializer element is not constant
tclrrd.c:178: error: ISO C forbids data definition with no type or storage class
tclrrd.c:179: error: syntax error before "if"
tclrrd.c:182: warning: type defaults to `int' in declaration of `listPtr'
tclrrd.c:182: error: conflicting types for 'listPtr'
tclrrd.c:174: error: previous declaration of 'listPtr' was here
tclrrd.c:182: warning: implicit declaration of function `Tcl_GetObjResult'
tclrrd.c:182: error: initializer element is not constant
tclrrd.c:182: error: ISO C forbids data definition with no type or storage class
tclrrd.c:183: error: syntax error before "for"
tclrrd.c:187: error: syntax error before '(' token
tclrrd.c:191: warning: type defaults to `int' in declaration of `free'
tclrrd.c:191: warning: parameter names (without types) in function declaration
tclrrd.c:191: error: conflicting types for 'free'
/usr/include/stdlib.h:597: error: previous declaration of 'free' was here
tclrrd.c:191: error: conflicting types for 'free'
/usr/include/stdlib.h:597: error: previous declaration of 'free' was here
tclrrd.c:191: error: ISO C forbids data definition with no type or storage class
tclrrd.c:192: warning: type defaults to `int' in declaration of `free'
tclrrd.c:192: warning: parameter names (without types) in function declaration
tclrrd.c:192: error: ISO C forbids data definition with no type or storage class
tclrrd.c:193: error: syntax error before '}' token
tclrrd.c:194: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:194: warning: parameter names (without types) in function declaration
tclrrd.c:194: error: ISO C forbids data definition with no type or storage class
tclrrd.c:196: error: syntax error before "if"
tclrrd.c:199: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:199: error: ISO C forbids data definition with no type or storage class
tclrrd.c:200: error: syntax error before "return"
tclrrd.c:210: error: syntax error before "ClientData"
tclrrd.c:210: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:210: error: ISO C forbids data definition with no type or storage class
tclrrd.c:211: error: syntax error before '*' token
tclrrd.c:211: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:211: error: ISO C forbids data definition with no type or storage class
tclrrd.c:214: error: syntax error before '{' token
tclrrd.c:218: error: syntax error before '*' token
tclrrd.c:218: warning: type defaults to `int' in declaration of `listPtr'
tclrrd.c:218: error: conflicting types for 'listPtr'
tclrrd.c:182: error: previous definition of 'listPtr' was here
tclrrd.c:218: error: conflicting types for 'listPtr'
tclrrd.c:182: error: previous definition of 'listPtr' was here
tclrrd.c:218: error: ISO C forbids data definition with no type or storage class
tclrrd.c:219: error: conflicting types for 'argv2'
tclrrd.c:178: error: previous definition of 'argv2' was here
tclrrd.c:219: error: conflicting types for 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:221: warning: type defaults to `int' in declaration of `calcpr'
tclrrd.c:221: warning: initialization makes integer from pointer without a cast
tclrrd.c:221: error: ISO C forbids data definition with no type or storage class
tclrrd.c:223: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:223: error: conflicting types for 'argv2'
tclrrd.c:219: error: previous declaration of 'argv2' was here
tclrrd.c:223: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:223: warning: initialization makes integer from pointer without a cast
tclrrd.c:223: error: initializer element is not constant
tclrrd.c:223: error: ISO C forbids data definition with no type or storage class
tclrrd.c:224: error: syntax error before "if"
tclrrd.c:226: error: syntax error before '(' token
tclrrd.c:227: error: syntax error before '(' token
tclrrd.c:240: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:240: warning: parameter names (without types) in function declaration
tclrrd.c:240: error: ISO C forbids data definition with no type or storage class
tclrrd.c:242: error: syntax error before "if"
tclrrd.c:245: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:245: error: ISO C forbids data definition with no type or storage class
tclrrd.c:246: error: syntax error before "return"
tclrrd.c:256: error: syntax error before "ClientData"
tclrrd.c:256: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:256: error: ISO C forbids data definition with no type or storage class
tclrrd.c:257: error: syntax error before '*' token
tclrrd.c:257: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:257: error: ISO C forbids data definition with no type or storage class
tclrrd.c:260: error: syntax error before '{' token
tclrrd.c:263: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:263: error: redefinition of 'argv2'
tclrrd.c:223: error: previous definition of 'argv2' was here
tclrrd.c:263: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:263: warning: initialization makes integer from pointer without a cast
tclrrd.c:263: error: initializer element is not constant
tclrrd.c:263: error: ISO C forbids data definition with no type or storage class
tclrrd.c:264: warning: type defaults to `int' in declaration of `rrd_tune'
tclrrd.c:264: warning: parameter names (without types) in function declaration
tclrrd.c:264: error: ISO C forbids data definition with no type or storage class
tclrrd.c:265: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:265: warning: parameter names (without types) in function declaration
tclrrd.c:265: error: ISO C forbids data definition with no type or storage class
tclrrd.c:267: error: syntax error before "if"
tclrrd.c:270: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:270: error: ISO C forbids data definition with no type or storage class
tclrrd.c:271: error: syntax error before "return"
tclrrd.c:281: error: syntax error before "ClientData"
tclrrd.c:281: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:281: error: ISO C forbids data definition with no type or storage class
tclrrd.c:282: error: syntax error before '*' token
tclrrd.c:282: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:282: error: ISO C forbids data definition with no type or storage class
tclrrd.c:285: error: syntax error before '{' token
tclrrd.c:288: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:288: error: redefinition of 'argv2'
tclrrd.c:263: error: previous definition of 'argv2' was here
tclrrd.c:288: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:288: warning: initialization makes integer from pointer without a cast
tclrrd.c:288: error: initializer element is not constant
tclrrd.c:288: error: ISO C forbids data definition with no type or storage class
tclrrd.c:289: warning: type defaults to `int' in declaration of `rrd_resize'
tclrrd.c:289: warning: parameter names (without types) in function declaration
tclrrd.c:289: error: ISO C forbids data definition with no type or storage class
tclrrd.c:290: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:290: warning: parameter names (without types) in function declaration
tclrrd.c:290: error: ISO C forbids data definition with no type or storage class
tclrrd.c:292: error: syntax error before "if"
tclrrd.c:295: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:295: error: ISO C forbids data definition with no type or storage class
tclrrd.c:296: error: syntax error before "return"
tclrrd.c:306: error: syntax error before "ClientData"
tclrrd.c:306: warning: type defaults to `int' in declaration of `clientData'
tclrrd.c:306: error: ISO C forbids data definition with no type or storage class
tclrrd.c:307: error: syntax error before '*' token
tclrrd.c:307: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:307: error: ISO C forbids data definition with no type or storage class
tclrrd.c:310: error: syntax error before '{' token
tclrrd.c:313: warning: type defaults to `int' in declaration of `argv2'
tclrrd.c:313: error: redefinition of 'argv2'
tclrrd.c:288: error: previous definition of 'argv2' was here
tclrrd.c:313: error: redefinition of 'argv2'
tclrrd.c:91: error: previous definition of 'argv2' was here
tclrrd.c:313: warning: initialization makes integer from pointer without a cast
tclrrd.c:313: error: initializer element is not constant
tclrrd.c:313: error: ISO C forbids data definition with no type or storage class
tclrrd.c:314: warning: type defaults to `int' in declaration of `rrd_restore'
tclrrd.c:314: warning: parameter names (without types) in function declaration
tclrrd.c:314: error: ISO C forbids data definition with no type or storage class
tclrrd.c:315: warning: type defaults to `int' in declaration of `getopt_cleanup'
tclrrd.c:315: warning: parameter names (without types) in function declaration
tclrrd.c:315: error: ISO C forbids data definition with no type or storage class
tclrrd.c:317: error: syntax error before "if"
tclrrd.c:320: warning: type defaults to `int' in declaration of `rrd_clear_error'
tclrrd.c:320: error: ISO C forbids data definition with no type or storage class
tclrrd.c:321: error: syntax error before "return"
tclrrd.c:335: error: syntax error before "Tcl_CmdProc"
tclrrd.c:335: warning: no semicolon at end of struct or union
tclrrd.c:336: warning: type defaults to `int' in declaration of `CmdInfo'
tclrrd.c:336: error: ISO C forbids data definition with no type or storage class
tclrrd.c:338: error: syntax error before "rrdCmds"
tclrrd.c:338: warning: type defaults to `int' in declaration of `rrdCmds'
tclrrd.c:339: warning: braces around scalar initializer
tclrrd.c:339: warning: (near initialization for `rrdCmds[0]')
tclrrd.c:339: warning: initialization makes integer from pointer without a cast
tclrrd.c:339: error: `Rrd_Create' undeclared here (not in a function)
tclrrd.c:339: warning: excess elements in scalar initializer
tclrrd.c:339: warning: (near initialization for `rrdCmds[0]')
tclrrd.c:340: warning: braces around scalar initializer
tclrrd.c:340: warning: (near initialization for `rrdCmds[1]')
tclrrd.c:340: warning: initialization makes integer from pointer without a cast
tclrrd.c:340: error: `Rrd_Dump' undeclared here (not in a function)
tclrrd.c:340: warning: excess elements in scalar initializer
tclrrd.c:340: warning: (near initialization for `rrdCmds[1]')
tclrrd.c:341: warning: braces around scalar initializer
tclrrd.c:341: warning: (near initialization for `rrdCmds[2]')
tclrrd.c:341: warning: initialization makes integer from pointer without a cast
tclrrd.c:341: error: `Rrd_Last' undeclared here (not in a function)
tclrrd.c:341: warning: excess elements in scalar initializer
tclrrd.c:341: warning: (near initialization for `rrdCmds[2]')
tclrrd.c:342: warning: braces around scalar initializer
tclrrd.c:342: warning: (near initialization for `rrdCmds[3]')
tclrrd.c:342: warning: initialization makes integer from pointer without a cast
tclrrd.c:342: error: `Rrd_Update' undeclared here (not in a function)
tclrrd.c:342: warning: excess elements in scalar initializer
tclrrd.c:342: warning: (near initialization for `rrdCmds[3]')
tclrrd.c:343: warning: braces around scalar initializer
tclrrd.c:343: warning: (near initialization for `rrdCmds[4]')
tclrrd.c:343: warning: initialization makes integer from pointer without a cast
tclrrd.c:343: error: `Rrd_Fetch' undeclared here (not in a function)
tclrrd.c:343: warning: excess elements in scalar initializer
tclrrd.c:343: warning: (near initialization for `rrdCmds[4]')
tclrrd.c:344: warning: braces around scalar initializer
tclrrd.c:344: warning: (near initialization for `rrdCmds[5]')
tclrrd.c:344: warning: initialization makes integer from pointer without a cast
tclrrd.c:344: error: `Rrd_Graph' undeclared here (not in a function)
tclrrd.c:344: warning: excess elements in scalar initializer
tclrrd.c:344: warning: (near initialization for `rrdCmds[5]')
tclrrd.c:345: warning: braces around scalar initializer
tclrrd.c:345: warning: (near initialization for `rrdCmds[6]')
tclrrd.c:345: warning: initialization makes integer from pointer without a cast
tclrrd.c:345: error: `Rrd_Tune' undeclared here (not in a function)
tclrrd.c:345: warning: excess elements in scalar initializer
tclrrd.c:345: warning: (near initialization for `rrdCmds[6]')
tclrrd.c:346: warning: braces around scalar initializer
tclrrd.c:346: warning: (near initialization for `rrdCmds[7]')
tclrrd.c:346: warning: initialization makes integer from pointer without a cast
tclrrd.c:346: error: `Rrd_Resize' undeclared here (not in a function)
tclrrd.c:346: warning: excess elements in scalar initializer
tclrrd.c:346: warning: (near initialization for `rrdCmds[7]')
tclrrd.c:347: warning: braces around scalar initializer
tclrrd.c:347: warning: (near initialization for `rrdCmds[8]')
tclrrd.c:347: warning: initialization makes integer from pointer without a cast
tclrrd.c:347: error: `Rrd_Restore' undeclared here (not in a function)
tclrrd.c:347: warning: excess elements in scalar initializer
tclrrd.c:347: warning: (near initialization for `rrdCmds[8]')
tclrrd.c:348: warning: braces around scalar initializer
tclrrd.c:348: warning: (near initialization for `rrdCmds[9]')
tclrrd.c:348: warning: initialization makes integer from pointer without a cast
tclrrd.c:348: error: `Tcl_CmdProc' undeclared here (not in a function)
tclrrd.c:348: error: syntax error before ')' token
tclrrd.c:348: warning: excess elements in scalar initializer
tclrrd.c:348: warning: (near initialization for `rrdCmds[9]')
tclrrd.c:349: error: ISO C forbids data definition with no type or storage class
tclrrd.c:355: error: syntax error before "Tcl_Interp"
tclrrd.c:355: warning: type defaults to `int' in declaration of `interp'
tclrrd.c:355: error: ISO C forbids data definition with no type or storage class
tclrrd.c:357: error: syntax error before '{' token
tclrrd.c:359: warning: type defaults to `int' in declaration of `info'
tclrrd.c:359: error: ISO C forbids data definition with no type or storage class
tclrrd.c:365: error: syntax error before string constant
tclrrd.c:365: warning: type defaults to `int' in declaration of `Tcl_SetVar2'
tclrrd.c:365: error: ISO C forbids data definition with no type or storage class
tclrrd.c:378: error: syntax error before '->' token
tclrrd.c:309: warning: array 'argv' assumed to have one element
tclrrd.c:46: warning: 'getopt_cleanup' defined but not used
make[3]: *** [tclrrd.o] Error 1
make[3]: Leaving directory `/tmp/rrdbuild/rrdtool-1.2.11/bindings/tcl'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/rrdbuild/rrdtool-1.2.11/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/rrdbuild/rrdtool-1.2.11'
make: *** [all] Error 2
这是怎么回事呀

paicaso

  • 憂鬱的高中生
  • ***
  • 文章數: 108
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #7 於: 2006-09-30 13:24 »
試試先做make clean後再做make

$>make clean
$>make
$>make install

R2D2

  • 可愛的小學生
  • *
  • 文章數: 1
    • 檢視個人資料
[分享] rrdtool-1.2.10 的安裝 ( Fedora core 4 )
« 回覆 #8 於: 2006-11-24 11:32 »
Intalling tcl-devel tclx-devel

acty

  • 鑽研的研究生
  • *****
  • 文章數: 694
    • 檢視個人資料
    • UNIX 管理者的學習紀錄
這裡我另外推薦一個非常正確  保證一定可以安裝成功的文件
而且我很建議參考文件裡面軟體使用的版本

RRDtool 網站  文件裡面 rrdbuild
http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html

另外,這個方法將 tcl 關掉,  不會遇到 tcl 編譯的問題。

« 上次編輯: 2008-02-28 20:02 由 acty »
~~破窗計畫來囉~~~

學習與挑戰是我的樂趣... HIT!!
我知道的不多  但歡迎大家以起來討論

UNIX 管理者的學習紀錄 - http://actychen.wordpress.com