Manually compiling yaws on the Kail system (Dibian system is basically the same)

Source: Internet
Author: User
Tags automake

Because Kail is based on Diban

Assuming it's already a root account,

0. First install a few compiled libraries

A Apt-get install Automake

Yum Install Automake (on the CentOS system)

b sudo yum install Libtool (this is actually a dependency of automake)

C Autoreconf-fi

Generate Configure File

D./configure generate Make File

1.like others os.

Cd/root/dowloads/yaws-masterconfigure
Make

2. Then we have the error

MAKE[1]: Entering directory '/ROOT/DOWNLOADS/YAWS/YAWS-1.90/C_SRC '
Gcc-c-fpic-g-o2-i/usr/include/security-dhave_sendfile-i "/usr/local/lib/erlang/usr/include"-I/usr/include/pam/- Ddynamic_driver setuid_drv.c
Gcc-shared-o. /priv/lib/setuid_drv.so SETUID_DRV.O
Gcc-c-g-o2-i/usr/include/security-dhave_sendfile-i "/usr/local/lib/erlang/usr/include"-i/usr/include/pam/epam.c
Epam.c:2:22:fatal error:pam_appl.h:no such file or directory
Compilation terminated.
MAKE[1]: * * * [EPAM.O] Error 1
MAKE[1]: Leaving directory '/ROOT/DOWNLOADS/YAWS/YAWS-1.90/C_SRC '
Make: * * * [ALL] Error 1

It mean we have "pam_appl.h". From the word "Pam" I should be a pam-related issue

Seach Web. Find a topic about that http://linux.cn/article-5508-1.html

3.download "Pam_app.h"

sudo apt-get install libpam0g-devmakemake install

You may be able to report an error in creating a PDF document in the Make install

Install the following packages

sudo apt-get install Texlive-latex-base

sudo apt-get install Texmaker

sudo apt-get install texlive-fonts-recommended (This is the problem on my machine)

sudo apt-get install Texlive-scienc

4 Test it

Yaws--help

It is sucessful if it show below

Usage


Yaws-i | --interactive--Interactive (no daemon) mode
yaws-w | --winteractive--Cygwin Interactive (Werl)
Yaws--daemon--Daemon mode


Auxiliary flags for the daemon:
--id ID--Set System ID
--debug--Debug mode
--nodebug--Turn off debug mode
--conf file--set config file
--tracetraf--Trace traffic
--tracehttp--Trace HTTP traffic
--traceout--Trace output to stdout
--version--Print version
--PA path--Add load path
--mnesiadir Dir--Start Mnesia in dir
--proto_dist mod--use mod for Distrib
--sname xxx--start with sname xxx
--name xxx--Start with name xxx
--runmod MoD--Call mod:start/0 at startup
--heart--Auto Restart Yaws if it crashes
--heart-restart=c,t-Allow C heart restarts in T seconds
--erlarg x--pass argument x To/usr/local/bin/erl
--setcookie X--Set an Erlang cookie
--run_erl x--use Run_erl with Pipe-id x
--to_erl x--Connect to Pipe-id X
--disable-kpoll--pass +k false to Erlang
--umask Umaskval--Set process umask to Umaskval

CTL functions ...
Yaws--hup [--id ID]--hup The daemon, reload conf
Yaws--stop [--id ID]--Stop the daemon
Yaws--debug-dump [--id ID]--produce a debug dump
Yaws--status [--id ID]--Query the daemon status
Yaws--load Modules--load Modules
Yaws--ls--list yaws nodes and their status
Yaws--ctltrace traffic|http--Toggle trace of running daemon
Yaws--check Yawsfile [incdirs]--Test compile File
Yaws--wait-started[=secs] [--id ID]--Wait for daemon
Yaws--stats [--id ID]--Show daemon statistics

Manually compiling yaws on the Kail system (Dibian system is basically the same)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.