Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test for asciidoc failed when installing tinyproxy

Tags:

linux

I want to install tinyproxy https://banu.com/tinyproxy/

when I cd into the directory and run make I get

checking for a2x... no
configure: error: Test for asciidoc failed. See the file 'INSTALL' for help.

then I want to install asciidoc I get

[root@dd tinyproxy-1.8.3]yum install asciidoc
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
Setting up Install Process
No package asciidoc available.
Error: Nothing to do

how to deal with this? thanks

like image 272
user138126 Avatar asked Mar 29 '13 10:03

user138126


2 Answers

If asciidoc is not in your linux distribution or you are not root. you have to install it manually. download the asciidoc tarball from http://www.methods.co.nz/asciidoc/ and do the usual:

  configure --prefix=${HOME} && make && make install

Then make sure that ${HOME}/bin is in your PATH, e.g. by running export PATH=${PATH}:${HOME}/bin

The configure script of tinyproxy will check if a2x is somewhere in your PATH. If it can't find it, you won't get it to compile.

like image 190
Max Avatar answered Nov 11 '22 21:11

Max


If you don't care the docs of tinyproxy, just remove the docs subdirectory from the SUBDIRS variable in Makefile and then make.

This will skip the doc generating target when calling make, so there is no need to install a2x.

like image 35
phil Avatar answered Nov 11 '22 21:11

phil