Skip to content

Instantly share code, notes, and snippets.

@harunkurtdev
Forked from pwichmann/zeromq.sh
Last active August 4, 2023 11:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harunkurtdev/2ab85dabd683ba6c9e58ab22d0878804 to your computer and use it in GitHub Desktop.
Save harunkurtdev/2ab85dabd683ba6c9e58ab22d0878804 to your computer and use it in GitHub Desktop.
How to install ZeroMQ on Ubuntu
#!/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
@harunkurtdev
Copy link
Author

all evertyhing true

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