Install Hylafax and IAXModem on RHEL/Centos 6.5 x64

  1. HylaFAX Installation: HylaFax is an enterprise-class system for sending and receiving facsimiles as well as for sending alpha-numeric pages. Download the the latest release and their dependency sharutils first; then use rpm to install them.
    rpm -ivh hylafax-server-6.0.6-1rhel6.x86_64.rpm hylafax-client-6.0.6-1rhel6.x86_64.rpm sharutils-4.7-6.1.el6.x86_64.rpm

    After install successfully, when running sendfax to test, get error like /usr/sbin/textfmt: No font metric information found for “Courier-Bold”:

    # sendfax -n -d 991215 /etc/hylafax/hyla.conf
    /usr/sbin/textfmt: No font metric information found for "Courier-Bold".
    Usage: /usr/sbin/textfmt [-1] [-2] [-B] [-c] [-D] [-f fontname] [-F fontdir(s)] [-m N] [-o #] [-p #] [-r] [-U] [-Ml=#,r=#,t=#,b=#] [-V #] files... >
    Default options: -f Courier -1 -p 11bp -o 0
    Error converting document; command was "/usr/sbin/textfmt -B -f Courier-Bold    -Ml=0.4in -p 11 -s default >'/tmp//sndfaxZDqe83' <'/etc/hylafax/hyla.conf'"

    This is a bug in ghostscript-8.70, to fix the error, download & extract Courier-Bold.pfa and Courier-Bold.afm from htmldoc package, copy it to /usr/share/fonts/default/ghostscript/; then edit /usr/share/ghostscript/8.70/Resource/Init/Fontmap.GS, search and change line from /Courier-Bold /NimbusMonL-Bold ; to /Courier-Bold (Courier-Bold.pfa) ;

    # wget
    # unzip
    # cp htmldoc-1.8.28/fonts/Courier-Bold.afm /usr/share/fonts/default/ghostscript/
    # cp htmldoc-1.8.28/fonts/Courier-Bold.pfa /usr/share/fonts/default/ghostscript/
    Try sendfax again now and it should work.
  2. IaxModem compiler and installation: Install development tools first; then download IaxModem latest source file and untar it; then build IaxModem with dynamic linking.
    # yum groupinstall "Development tools"
    # wget
    # tar xzvf iaxmodem-1.2.0.tar.gz
    # cd iaxmodem-1.2.0
    # cd lib/libiax2
    # ./configure --prefix=/usr
    # make
    # make install
    # cd ../../lib/spandsp
    # ./configure  --prefix=/usr
    # make
    # make install
    # cd ../../
    # ./build

    After build successfully, copy executable file iaxmodem to /usr/bin, also copy /usr/lib/libiax.* to /usr/lib64, if don’t copy libiax.*, there will be cannot find shared libiax errror when start iaxmodem.

    # cp iaxmodem  /usr/bin/
    # cp /usr/lib/libiax.*  /usr/lib/

Понравилась статья, расскажи о ней друзьям, нажми кнопку!