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 閱讀(6179) 評論(0)  編輯  收藏 所屬分類: nodejs


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


          網站導航:
           
          主站蜘蛛池模板: 郯城县| 新建县| 怀安县| 泸水县| 永康市| 疏勒县| 明水县| 衡南县| 靖边县| 新河县| 军事| 体育| 工布江达县| 福建省| 马鞍山市| 临海市| 泗阳县| 安图县| 卢龙县| 昌宁县| 蒙阴县| 开鲁县| 丹凤县| 安义县| 肥乡县| 黔江区| 德惠市| 仪陇县| 高碑店市| 九龙县| 武邑县| 井研县| 建昌县| 公安县| 新龙县| 邻水| 晋宁县| 吉木乃县| 东丰县| 右玉县| 武汉市|