Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/62.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku app buildpack在成功编译后失败_C_Heroku_Makefile_Installation_Buildpack - Fatal编程技术网

Heroku app buildpack在成功编译后失败

Heroku app buildpack在成功编译后失败,c,heroku,makefile,installation,buildpack,C,Heroku,Makefile,Installation,Buildpack,我正在尝试使用专门为其定制的heroku buildpack构建一个C应用程序。问题是编译之后,它进入了安装的最后一个阶段,并且失败了。有人能解释我需要做什么才能成功部署它吗 命令: $ git clone https://github.com/znc/znc.git && cd znc $ heroku create --stack cedar --buildpack http://github.com/lonnen/heroku-buildpack-znc.git Crea

我正在尝试使用专门为其定制的heroku buildpack构建一个
C
应用程序。问题是编译之后,它进入了安装的最后一个阶段,并且失败了。有人能解释我需要做什么才能成功部署它吗

命令:

$ 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/ | git@heroku.com: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 git@heroku.com:dark-clouds-666.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:dark-clouds-666.git'

您的用户没有写入
/usr/local
的权限。通常,
make安装
由root用户完成,其中
make
可以由普通用户完成

最快的方法是由root用户执行all,这是不安全的,因为您可以修改所有内容,从而导致系统崩溃

您可以设置不同于
/usr/local
的安装位置,也可以强制heroku请求root权限(
sudo make install