2016-11-04 11 views
1

emberjsは..私はちょうど公式<a href="https://guides.emberjs.com/v2.9.0/getting-started/quick-start/#toc_install-ember" rel="nofollow noreferrer">site</a> emberjs従うとebmerjsをインストール..私は私のUbuntuシステムにemberjsをインストールしたい..助けにどれUbuntuの

私をインストール'警備員' エラーが発生している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 

必ずしものみEmberJSに関連していない、私は完全なスクリプトを提供することができますが、私はまた、NPMとJavaや他のものをインストールします。

+1

okありがとうございます@pavol ...私はそれを試してみましょう..あなたが知っている.. :) –

+1

しかし、私は同じ問題が...どのように監視人がインストールされているチェック? –

+0

ああ、これはPythonのバージョンが間違っていると思われます。 '致命的なエラー:Python.h:そのようなファイルやディレクトリがありません。 ' 正しいpythonバージョンがインストールされていることを確認してください。私はPython 2.7.11+を持っています。 'python -V'を実行して、あなたのpythonバージョンを見つけましょう。 http://stackoverflow.com/a/34668690/1854744に関連する可能性があります – Pavol

関連する問題