Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve install-dependencies.sh for Debian and Ubuntu #3379

Closed
argenet opened this issue Apr 23, 2018 · 3 comments
Closed

Improve install-dependencies.sh for Debian and Ubuntu #3379

argenet opened this issue Apr 23, 2018 · 3 comments

Comments

@argenet
Copy link
Contributor

argenet commented Apr 23, 2018

Scylla version (or git commit hash): master (11940ca)

Currently, the install-dependencies.sh script does not contain/use information about supported versions of external packages used for building Scylla. Also, it doesn't install some packages (thrift, antlr3) and notifies the user on that:

echo antlr3 and thrift still missing - waiting for ppa

Our current logic of the install-dependencies.sh for Debian/Ubuntu should be improved in the following ways:

See ff055a2 where the same has been done for CentOS.

@argenet
Copy link
Contributor Author

argenet commented Apr 23, 2018

dist/debian/build_deb.sh and dist/debian/pbuilderrc can give some hints as to which repositories to use

@slivne slivne added this to the x-ray milestone Jun 14, 2018
@bentsi
Copy link
Contributor

bentsi commented Nov 22, 2018

I've succeeded to compile Scylla branch-3.0 in Ubuntu 18.04 docker.
Run Ubuntu docker image:
docker run -it --rm ubuntu:18.04 bash
Inside the running container:

apt-get update
apt-get install -y sudo git software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A874136B215467E8
sudo add-apt-repository ppa:scylladb/ppa
sudo apt-get update
git clone --recursive --branch branch-3.0 https://github.com/scylladb/scylla.git
git submodule update --init --recursive

sudo apt-get install -y python3-setuptools python3-all python3-all-dev debhelper \
 liblz4-dev libsnappy-dev libcrypto++-dev libjsoncpp-dev libaio-dev thrift-compiler \
 ragel ninja-build git libgnutls28-dev libhwloc-dev libnuma-dev libpciaccess-dev \
 xfslibs-dev python3-pyparsing libxml2-dev libsctp-dev python-urwid pciutils \
 libprotobuf-dev protobuf-compiler systemtap-sdt-dev cmake libssl-dev scylla-gcc73-g++-7 \
 scylla-libthrift010-dev scylla-antlr35-c++-dev scylla-libboost-program-options165-dev \
 scylla-libboost-filesystem165-dev scylla-libboost-system165-dev \
 scylla-libboost-thread165-dev scylla-libboost-test165-dev libsystemd-dev antlr3 \
 libyaml-cpp-dev

cd scylla
 ./configure.py --compiler /opt/scylladb/bin/g++-7  --cflags="-I/opt/scylladb/include" --ldflags="-L/opt/scylladb/lib/x86_64-linux-gnu" --mode=release --with=scylla
ninja -j 4

@avikivity
Copy link
Member

Closing as this is not actionable. If you see a missing dependency, send a patch to fix it. Otherwise this bug will always be closed and reopened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants