2016-11-04 126 views
1

任何的幫助我..emberjs Ubuntu上安裝

我想我的Ubuntu系統上安裝emberjs ..

我只是按照emberjs官方site並安裝ebmerjs ..

當我檢查燼versition..i有一個 '守夜人' 的錯誤..

我使用這個命令行

ember -v 

,我有錯誤這個樣子的......

Could not start watchman; falling back to NodeWatcher for file system events. 
Visit http://ember-cli.com/user-guide/#watchman for more info. 
ember-cli: 2.9.1 
node: 6.2.2 
os: linux ia32 

我試圖解決這個錯誤,並按照this鏈接,但我還有一個錯誤

這是我STPES:

// installing watchman from source 
    git clone https://github.com/facebook/watchman.git 
    cd watchman 
    ./autogen.sh 
    ./configure 
    make 
    sudo make install 

當我把make命令

我有錯誤看起來像

make all-am 
make[1]: Entering directory '/home/karthick/watchman' 
cd python && /usr/bin/python ./setup.py clean build_py -c -d . build_ext -i 
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zip_safe' 
    warnings.warn(msg) 
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'test_suite' 
    warnings.warn(msg) 
running clean 
removing 'build/temp.linux-i686-2.7' (and everything under it) 
error removing build/temp.linux-i686-2.7: [Errno 13] Permission denied: 'build/temp.linux-i686-2.7/pywatchman' 
error removing build/temp.linux-i686-2.7: [Errno 13] Permission denied: 'build/temp.linux-i686-2.7' 
running build_py 
running build_ext 
building 'pywatchman.bser' extension 
i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c pywatchman/bser.c -o build/temp.linux-i686-2.7/pywatchman/bser.o 
pywatchman/bser.c:31:20: fatal error: Python.h: No such file or directory 
#include <Python.h> 
        ^
compilation terminated. 
error: command 'i686-linux-gnu-gcc' failed with exit status 1 
Makefile:4139: recipe for target 'py-build' failed 
make[1]: *** [py-build] Error 1 
make[1]: Leaving directory '/home/karthick/watchman' 
Makefile:899: recipe for target 'all' failed 
make: *** [all] Error 2 

任何一個可以幫助我:(:(

當我創建ember new app_name我得到這個錯誤:(

Could not start watchman; falling back to NodeWatcher for file system events. 
Visit http://ember-cli.com/user-guide/#watchman for more info. 
EACCES: permission denied, open '/home/karthick/.config/configstore/bower-github.json' 
You don't have access to this file. 

Error: EACCES: permission denied, open '/home/karthick/.config/configstore/bower-github.json' 
You don't have access to this file. 

    at Error (native) 
    at Object.fs.openSync (fs.js:634:18) 
    at FSMonitor._measure (/usr/local/lib/node_modules/ember-cli/node_modules/heimdalljs-fs-monitor/index.js:66:21) 
    at Object.openSync (/usr/local/lib/node_modules/ember-cli/node_modules/heimdalljs-fs-monitor/index.js:82:30) 
    at Object.fs.readFileSync (fs.js:502:33) 
    at FSMonitor._measure (/usr/local/lib/node_modules/ember-cli/node_modules/heimdalljs-fs-monitor/index.js:66:21) 
    at Object.readFileSync (/usr/local/lib/node_modules/ember-cli/node_modules/heimdalljs-fs-monitor/index.js:82:30) 
    at Object.create.all.get (/usr/local/lib/node_modules/ember-cli/node_modules/bower/lib/node_modules/configstore/index.js:35:26) 
    at Object.Configstore (/usr/local/lib/node_modules/ember-cli/node_modules/bower/lib/node_modules/configstore/index.js:28:44) 
    at readCachedConfig (/usr/local/lib/node_modules/ember-cli/node_modules/bower/lib/config.js:19:23) 

回答

0

這是我的腳本的一部分,可以幫助我建立了灰燼在我的Ubuntu機:

# ruby 
sudo apt-get install ruby-full 

# brew for linux 
cd ~ 
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)" 

# Add to your .bashrc or .zshrc 
export PATH="$HOME/.linuxbrew/bin:$PATH" 
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" 
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH" 

sudo apt install linuxbrew-wrapper 

# watchman 
brew update 
brew install watchman 

我可以提供完整的劇本,但我也安裝NPM和Java和其他的東西,沒有必然的關係只EmberJS。

+1

好的,謝謝@pavol ...我會嘗試一次工作..你知道.. :) –

+1

但我有同樣的問題...如何檢查看守安裝? –

+0

哦,我認爲這可能與不正確的python版本有關,看起來: '致命錯誤:Python.h:沒有這樣的文件或目錄' 確保安裝了正確的python版本。我有Python 2.7.11+。運行'python -V'來找出你的python版本。 可能與http://stackoverflow.com/a/34668690/1854744有關 – Pavol