Mac: Install minidlna / ReadyMedia on OS X

20 Oct 2013

UPDATE: The easiest (and only way if you run Mavericks) ist to use MacPorts (Thanks @Vladimir)

sudo port selfupdate
sudo port install minidlna

You can now proceed to Setup minidlna

- - - DEPRECIATED - - -

Get the latest version of minidlna here. Using port we install the following dependencies:

sudo port selfupdate
sudo port install libiconv sqlite3 jpeg libexif libid3tag libogg libvorbis flac ffmpeg

Extract the sources, enter the source directory and execute:

./configure
sudo make

I got the following error executing make:

make  all-recursive
Making all in po
  CC     getifaddr.o
getifaddr.c: In function ‘getsysaddrs’:
getifaddr.c:181: error: ‘define’ undeclared (first use in this function)
getifaddr.c:181: error: (Each undeclared identifier is reported only once
getifaddr.c:181: error: for each function it appears in.)
getifaddr.c:181: error: expected ‘;’ before ‘IFF_SLAVE’
make[2]: *** [getifaddr.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

In this case edit getifaddr.c and before line 178 add this piece of code:

#ifndef IFF_SLAVE
#define IFF_SLAVE 0
#endif

Continue:

sudo make
sudo make check
sudo cp minidlnad /usr/bin

make install doesn’t seem to work on OS X which is why we copied the executable minidlnad manually.
- - - DEPRECIATED END - - -

Setup minidlna

Copy sudo cp minidlna.conf /etc and adjust the config file or just create a new file /etc/minidlna.conf:

port=8200
media_dir=V,/PATH/TO/YOUR/VIDEO/FOLDER
user=YOURUSER
db_dir=/usr/share/minidlna/db
log_dir=/usr/share/minidlna/log
inotify=yes
notify_interval=300
log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn

Create the necessary directories:

sudo mkdir -p /usr/share/minidlna/db
sudo mkdir -p /usr/share/minidlna/log
sudo chown -R [YOURUSER] /usr/share/minidlna

Start/Stop Server

Start the minidlna server: minidlnad
Stop the minidlna server: pkill minidlnad

If you experience any problems check the logfile in /usr/share/minidlna/log.


Tags: ,

comments powered by Disqus