I would like to develop some web applications using Erlang and the Yaws webserver. But I'm having problem with setting up Yaws on Ubuntu Server 10.10.
First I updated my Ubuntu system with:
sudo apt-get update
sudo apt-get upgrade
Installing Yaws with apt-get
I installed Yaws with apt-get:
sudo apt-get install yaws
But when I run Yaws with yaws -i
I get this error message:
Yaws: Bad conf: "Can't find config file "
Then I tried to start Yaws with yaws -i --conf /etc/yaws/yaws.conf
but then I got this error message:
Yaws: Bad conf: "Can't open config file /etc/yaws/yaws.conf"
I guess there is some problems with the file permissions.
Installing Yaws using the latest stable build
Now I tried to install Yaws using the latest stable build:
wget http://yaws.hyber.org/download/yaws-1.89.tar.gz
tar xfz yaws-1.89.tar.gz
sudo apt-get install gcc
cd yaws
./configure && make
But then I get errors during compilation:
epam.c:2: fatal error: pam_appl.h: No such file or directory
compilation terminated.
make[1]: *** [epam.o] Error 1
make[1]: Leaving directory `/home/jonas/yaws-1.89/c_src`
make: *** [all] Error 1
How can I install Yaws webserver on Ubuntu Server 10.10?