FreeBSD 安裝node遇到的問題 Error code 70 - 吉姆的電腦閣誌

吉姆的電腦閣誌

HTML5,Jquery,PHP,FreeBSD分享教學。電腦是用來節省時間及提升樂趣,不是用來把人綁住的。隨心而行,順著生命的脈動重新創造屬於自己的生活。

Breaking

Home Top Ad

Responsive Ads Here

Post Top Ad

Responsive Ads Here

2015-12-07

FreeBSD 安裝node遇到的問題 Error code 70

最近想學ghost blogger的安裝方式,在windows下測試並沒問題,很順利的安裝完成。當然也想在FreeeBSD上試試,不過一開始就遇到問題,看了doc才知道ghost對node的版有要求。

Ghost currently supports Node versions 0.10.x, 0.12.x and 4.2.x only. 可參見[官方文件]

  1. port安裝過程及問題情形

    
    [aqua@dmz /usr/ports/www/node010]# make install
     ===>  Installing for node010-0.10.40
     ===>   node010-0.10.40 depends on file: /usr/local/bin/python2.7 - found
     ===>   node010-0.10.40 depends on executable: python2 - found
     ===>   node010-0.10.40 depends on shared library: libexecinfo.so - found (/usr/local/lib/libexecinfo.so)
     ===>  Checking if node010 already installed
     ===>   Registering installation for node010-0.10.40
     Installing node010-0.10.40...
     pkg-static: node010-0.10.40 conflicts with node-0.10.32 (installs files into the same place).  Problematic file: /usr/local/bin/node
     *** Error code 70
    Stop in /usr/ports/www/node010.
    
  2. 解決方法

  3. 利用pkd delete指令,先刪除原有相關的檔案,再進行安裝 make install即可完成。
    
    [aqua@dmz /usr/ports/www/node010]# pkg delete -f node
     Updating database digests format: 100%
     Checking integrity... done (0 conflicting)
     Deinstallation has been requested for the following 1 packages (of 0 packages in the universe):
    
    Installed packages to be REMOVED:
             node-0.10.32
    
    The operation will free 10 MiB.
    
    Proceed with deinstalling packages? [y/N]: y
     [1/1] Deinstalling node-0.10.32...
     [1/1] Deleting files for node-0.10.32:   0%
    node-0.10.32: missing file /usr/local/bin/node
     [1/1] Deleting files for node-0.10.32:  84%
     node-0.10.32: missing file /usr/local/lib/node_modules/.keepme
     [1/1] Deleting files for node-0.10.32:  87%
     node-0.10.32: missing file /usr/local/man/man1/node.1.gz
     [1/1] Deleting files for node-0.10.32: 100%
     pkg: unlinkat(usr/local/lib/node_modules/): No such file or directory
     [aqua@dmz /usr/ports/www/node010]# make install
     ===>  Installing for node010-0.10.40
     ===>   node010-0.10.40 depends on file: /usr/local/bin/python2.7 - found
     ===>   node010-0.10.40 depends on executable: python2 - found
     ===>   node010-0.10.40 depends on shared library: libexecinfo.so - found (/usr/local/lib/libexecinfo.so)
     ===>  Checking if node010 already installed
     ===>   Registering installation for node010-0.10.40
     Installing node010-0.10.40...
     Note: If you need npm (Node Package Manager), please install www/npm.
    
    ===> SECURITY REPORT:
           This port has installed the following files which may act as network
           servers and may therefore pose a remote security risk to the system.
     /usr/local/bin/node
    
          If there are vulnerabilities in these programs there may be a security
           risk to the
    

沒有留言:

Post Bottom Ad

Responsive Ads Here

Pages