Skip to content

Instantly share code, notes, and snippets.

@anildigital
Created April 7, 2017 10:00
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save anildigital/7c63b4e526017cea631db87d0cefefd0 to your computer and use it in GitHub Desktop.
Save anildigital/7c63b4e526017cea631db87d0cefefd0 to your computer and use it in GitHub Desktop.
Install Janus WebRTC Gateway on macOS
brew install jansson libnice openssl libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg glib pkg-config gengetopt
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xvf v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr/local/libsrtp
make
sudo make install
git clone git@github.com:meetecho/janus-gateway.git
sh autogen.sh
./configure --prefix=/usr/local/janus --enable-post-processing PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
make
make install
make configs
@andrew-grischenko
Copy link

Updates for Oct 2018:

brew install jansson libnice openssl libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg glib pkg-config gengetopt ffmpeg

curl https://codeload.github.com/cisco/libsrtp/tar.gz/v2.2.0 > libsrtp-2.2.0.tar.gz 
tar xvf libsrtp-2.2.0.tar.gz 
cd libsrtp-2.2.0
./configure --prefix=/usr/local --enable-openssl PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
make shared_library && sudo make install

git clone git@github.com:meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --prefix=/usr/local/janus --enable-post-processing PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
make
sudo make install 
sudo make configs

@speeddragon
Copy link

I needed to setup the PKG_CONFIG_PATH correctly.

Used find /usr/local -name "*pkgconfig*" to check the paths and run ./configure --prefix=/usr/local/janus --enable-post-processing a number of time to find the missing libraries.

./configure --prefix=/usr/local/janus --enable-post-processing PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/:/usr/local/Cellar/openssl/1.0.2r/lib/pkgconfig in my case

@manegame
Copy link

I also needed:

libconfig
automake

@SumitKumar-FrontEndDeveloper

HOw to run after setup ?

@ClosetGeek-Git
Copy link

This is awesome. Thank you!

@Djain1764
Copy link

hey @ClosetMonkey , Are you able to use janus in mac using whatever is written in above comments ?
Can you please help me out , I am not able to run this script

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