MikeyP.com MikeyP.com

Installing libupnp on Linux

Most Linux UPnP [WikiPedia] media servers require the libupnp library. However, the install script for libupnp is incomplete and not well documented, so here are some more complete install steps.

Although libupnp-1.3.1 was just released, I couldn't get it to compile, so I use the older libupnp-1.2.1a version. First, untar and compile the source:

tar -xzvf libupnp-1.2.1a.tar.gz
cd libupnp-1.2.1a/upnp

Second, become root and run the install script:

cd libupnp-1.2.1a/upnp
make install

Finally, while still root, copy the following support libraries and header files, then run ldconfig:

cp ../ixml/inc/ixml.h /usr/include/upnp/.
cp ../threadutil/inc/ithread.h /usr/include/upnp/.
cp ../ixml/bin/libixml.so /usr/lib/.
cp ../threadutil/bin/libthreadutil.so /usr/lib/.

Read more stories like this one...