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

Install Mosquitto on AWS EC2 Centos #1410

Open
vanht opened this issue Sep 13, 2019 · 3 comments
Open

Install Mosquitto on AWS EC2 Centos #1410

vanht opened this issue Sep 13, 2019 · 3 comments

Comments

@vanht
Copy link

vanht commented Sep 13, 2019

I can't install mosquitto on aws ec2 centos, because respository no found.
Can you fix?
Thank you.

http://download.opensuse.org/repositories/home:/oojah:/mqtt/CentOS_CentOS-7/home:oojah:mqtt.repo

@vanht
Copy link
Author

vanht commented Sep 13, 2019

I install mosquitto, but Websockets support not available.
Can you help me?
Thank all.

sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel
wget https://github.com/warmcat/libwebsockets/archive/v2.1.0.tar.gz
tar xf v2.1.0.tar.gz
cd libwebsockets-2.1.0
mkdir build; cd build
cmake .. -DLIB_SUFFIX=64
sudo make install
echo "/usr/local/lib64" | sudo tee -a /etc/ld.so.conf.d/libwebsockets.conf
sudo ldconfig
ldconfig -p | grep libwebsockets
cd 
wget https://github.com/eclipse/mosquitto/archive/v1.4.10.tar.gz
tar xf v1.4.10.tar.gz
cd mosquitto-1.4.10
make WITH_LIBWEBSOCKETS=yes binary
# Edit ./man/Makefile to comment out the `all` and `dist` targets
# Edit ./man/Makefile to comment out all of the work in the `install` target
sudo make install

# sudo ln -s /usr/local/lib64/libwebsockets.so.4.0.0 /usr/lib/libwebsockets.so.4.0.0 # not needed

# I forgot how to make an rpm from these instructions

@vanht vanht closed this as completed Sep 13, 2019
@vanht
Copy link
Author

vanht commented Sep 13, 2019

I install mosquitto, but Websockets support not available.

@vanht vanht reopened this Sep 13, 2019
@groovenectar
Copy link

How did you install Mosquitto? The repo is still down: http://download.opensuse.org/repositories/home/oojah:/mqtt/CentOS_CentOS-7/home:oojah:mqtt.repo

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

No branches or pull requests

2 participants