leisure

          JAVA - exceed,helloworld
          隨筆 - 50, 文章 - 0, 評論 - 11, 引用 - 0
          數據加載中……

          NodeJS安裝全過程

          # wget http://nodejs.org/dist/node-v0.4.11.tar.gz
          # tar -zxvf node-v0.4.11.tar.gz
          # cd node-v0.4.11
          # ./configure
          報了以下錯誤:
          Checking for program g++ or c++              : /usr/bin/g++
          Checking for program cpp                         : /usr/bin/cpp
          Checking for program ar                            : /usr/bin/ar
          Checking for program ranlib                      : /usr/bin/ranlib
          Checking for g++                                       : ok
          Checking for program gcc or cc                 : /usr/bin/gcc
          Checking for program ar                            : /usr/bin/ar
          Checking for program ranlib                      : /usr/bin/ranlib
          Checking for gcc                                        : ok  
          Checking for library dl                                : yes
          Checking for openssl                                 : not found
          Checking for function SSL_library_init       : not found
          Checking for header openssl/crypto.h       : not found
          /data/node-v0.4.9/wscript:341: error: Could not autodetect OpenSSL support. Make
          sure OpenSSL development packages are installed. Use configure --without-ssl to
          disable this message.

          安裝openssl-devel模塊即可,ubuntu安裝的是libssl-dev。
          # apt-get install libssl-dev
          如果提示gcc/g++ not found,安裝gcc即可,建議使用gcc 4.6+。

          # ./configure
          # make
          # make install

          # node -v
          v0.4.11
          # vi helloworld.js
          console.log('hello, NodeJS!');
          # node helloworld.js
          hello, NodeJS!

          NodeJS官方網站:

          posted on 2011-09-14 23:12 leisure 閱讀(6178) 評論(0)  編輯  收藏 所屬分類: nodejs


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 西藏| 边坝县| 砀山县| 邹城市| 龙山县| 阳谷县| 灵宝市| 钦州市| 会宁县| 梁河县| 萨嘎县| 华亭县| 蕉岭县| 赣榆县| 武义县| 信丰县| 政和县| 罗江县| 平果县| 灌阳县| 吉水县| 湾仔区| 彰武县| 玛沁县| 紫金县| 滦平县| 开平市| 安溪县| 大同市| 息烽县| 鸡西市| 申扎县| 庄河市| 万盛区| 哈巴河县| 临安市| 大埔县| 桑日县| 巧家县| 凤城市| 灯塔市|