Custom build pack [ failed to install WineHQ]


Balaramaraju JLSP <balaramaraju@...>
 

Hi All,

I am trying to create a custom build pack. To create a stack like WineHQ
with some VS2010 C++ Runtime to run windows native services.

BuildPack :-
bin/compile
#!/usr/bin/env bash echo "Install WineHQ"#wget
http://prdownloads.sourceforge.net/wine/wine-1.7.20.tar.bz2#tar -xjvf
wine-1.7.20.tar.bz2 && cd wine-1.7.*apt-get install wine1.7#./configure
--enable-win64#cd tools
#echo yes |./wineinstallecho "Update" echo "Load Custom Frameworks"echo "
Done"

but it failing with
-----> Downloaded app package (8.0K)
Cloning into '/tmp/buildpacks/WineHQ-BuildPack'...
Install WineHQ
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission
denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you
root?

any help is very much appreciated.

Thanks

J L S P Balaramaraju

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.