I am setting up a web server which packages and hosts different installers for client applications on Windows, Mac OS X, and Linux.
I am using EC2 so I went with Amazon Linux for my base image.
I have the repackaging working fine for creating Windows, Mac OS X, and RPM-based installers, however I can't find dpkg-buildpackage
anywhere in the Amazon Linux package repositories, so I currently can't create installers for our Debian and Ubuntu-based clients.
I tried searching for the dpkg-buildpackage
source, but it's a fraught search term: all I found were people asking questions about using dpkg-buildpackage
to build things from source, but not the source of the build tool itself.
How can I install dpkg-buildpackage
on Amazon Linux so I can create .deb
installers?
Мне удалось его установить.
Шаги:
# install ncurses-devel prereq
yum install ncurses-devel
wget http://http.debian.net/debian/pool/main/d/dpkg/dpkg_1.18.10.tar.xz
tar xvf dpkg_1.18.10.tar.xz
cd dpkg-1.18.10
./configure
make
make install
После его установки я заметил, что выполнение dpkg-buildpackage
не работает из-за отсутствия Dpkg.pm
perl-модуль, поэтому я установил следующее:
yum install cpan
cpan install Dpkg
Тогда в пути @INC
не было пути к новому установленному модулю, поэтому я изменил глобальный профиль, чтобы включить его:
$ cat /etc/profile.d/perl5lib.sh
# perl5lib initialization
export PERL5LIB=$PERL5LIB:/usr/local/share/perl5/vendor_perl
и вроде все заработало.