-
-
Save harunkurtdev/2ab85dabd683ba6c9e58ab22d0878804 to your computer and use it in GitHub Desktop.
How to install ZeroMQ on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Install required packages and dependencies | |
sudo apt-get update | |
sudo apt-get install -y libltdl-dev pkg-config build-essential autoconf automake | |
# Install libsodium | |
git clone https://github.com/jedisct1/libsodium.git | |
cd libsodium | |
./autogen.sh | |
./configure && make check | |
sudo make install | |
sudo ldconfig | |
cd .. | |
# Install zeromq | |
wget http://download.zeromq.org/zeromq-4.1.2.tar.gz | |
tar -xvf zeromq-4.1.2.tar.gz | |
cd zeromq-4.1.2 | |
./configure | |
make | |
sudo make install | |
cd .. | |
# Install PHP ZeroMQ extension | |
sudo apt-get install -y php-dev php-pear | |
sudo pecl install zmq-beta | |
# Enable the ZeroMQ extension in PHP | |
echo "extension=zmq.so" | sudo tee -a /etc/php/{your_php_version}/cli/php.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all evertyhing true