2014-07-23 66 views
0

我正在嘗試使用專門爲它定製的heroku buildpack構建一個C應用程序。問題是編譯後到達最後階段-----> Installing並失敗。有人能夠解釋我需要做什麼才能成功部署嗎?Heroku應用程序buildpack在編譯成功後失敗

命令:

$ git clone https://github.com/znc/znc.git && cd znc 
$ heroku create --stack cedar --buildpack http://github.com/lonnen/heroku-buildpack-znc.git 

Creating dark-clouds-666... 
done, stack is cedar 
BUILDPACK_URL=http://github.com/lonnen/heroku-buildpack-znc.git 
http://dark-clouds-666.herokuapp.com/ | [email protected]:dark-clouds-666.git 
Git remote heroku added 

$ git push heroku master 

...然後繼續構建一切看似正常的...

-----> Fetching custom git buildpack... done 
-----> C app detected 
-----> Running autogen.sh 
-----> Configuring 
-----> Compiling with Make 

     Linking znc... 

     ZNC was successfully compiled. 
     Use 'make install' to install ZNC to '/usr/local'. 

-----> Installing 
     test -d /usr/local/bin || /usr/bin/install -c -d /usr/local/bin 
     test -d /usr/local/include/znc || /usr/bin/install -c -d /usr/local/include/znc 
/usr/bin/install: cannot change permissions of `/usr/local/include/znc': No such file or directory 
make: *** [install] Error 1 

!  Push rejected, failed to compile C app 

To [email protected]:dark-clouds-666.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:dark-clouds-666.git' 

回答

0

您的用戶沒有權限在/usr/local寫。通常,make install由root用戶完成,其中make可以由普通用戶完成。

最快的方法是通過root用戶執行所有操作,這是不安全的,因爲您可以修改所有內容,導致系統損壞。

您可以設置與/usr/local不同的安裝位置,或者您可以強制heroku詢問根權限(sudo make install)。

相關問題