mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-10-11 01:58:45 -04:00
setup fixes
This commit is contained in:
parent
941cf9309e
commit
ee7ccd698d
3 changed files with 355 additions and 171 deletions
|
@ -1,11 +1,28 @@
|
|||
#!/bin/bash
|
||||
mkdir /tmp/capnproto-install
|
||||
cd /tmp/capnproto-install
|
||||
curl -O https://capnproto.org/capnproto-c++-0.9.1.tar.gz
|
||||
tar zxf capnproto-c++-0.9.1.tar.gz
|
||||
cd capnproto-c++-0.9.1
|
||||
./configure
|
||||
pushd /tmp/capnproto-install
|
||||
curl -O https://capnproto.org/capnproto-c++-0.10.2.tar.gz
|
||||
tar zxf capnproto-c++-0.10.2.tar.gz
|
||||
cd capnproto-c++-0.10.2
|
||||
./configure --without-openssl
|
||||
make -j6 check
|
||||
make install
|
||||
cd /
|
||||
rm -rf /tmp/capnproto-install
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
if command -v checkinstall &> /dev/null; then
|
||||
sudo checkinstall -y
|
||||
cp *.deb ~
|
||||
else
|
||||
sudo make install
|
||||
|
||||
fi
|
||||
popd
|
||||
sudo rm -rf /tmp/capnproto-install
|
||||
else
|
||||
if command -v checkinstall &> /dev/null; then
|
||||
checkinstall -y
|
||||
cp *.deb ~
|
||||
else
|
||||
make install
|
||||
fi
|
||||
popd
|
||||
rm -rf /tmp/capnproto-install
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue