【发布时间】:2011-07-18 17:44:12
【问题描述】:
我想使用 Erlang 和 Yaws 网络服务器开发一些网络应用程序。但我在 Ubuntu Server 10.10 上设置 Yaws 时遇到问题。
首先我更新了我的 Ubuntu 系统:
sudo apt-get update
sudo apt-get upgrade
使用 apt-get 安装 Yaws
我用 apt-get 安装了 Yaws:
sudo apt-get install yaws
但是当我使用 yaws -i 运行 Yaws 时,我收到以下错误消息:
Yaws: Bad conf: "Can't find config file "
然后我尝试使用 yaws -i --conf /etc/yaws/yaws.conf 启动 Yaws,但随后收到以下错误消息:
Yaws: Bad conf: "Can't open config file /etc/yaws/yaws.conf"
我猜是文件权限有问题。
使用最新的稳定版本安装 Yaws
现在我尝试使用最新的稳定版本安装 Yaws:
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
然后我在编译过程中遇到错误:
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
如何在 Ubuntu Server 10.10 上安装 Yaws 网络服务器?
【问题讨论】:
标签: yaws ubuntu-server