julius icon indicating copy to clipboard operation
julius copied to clipboard

Error compiling julius

Open kiguaran001 opened this issue 8 years ago • 3 comments

Hi there! Im trying to install julius using pulseaudio in Ubuntu.16 using this comand and I get this error message:

This is the output when I run this command:

~/julius-4.2.2$ ./configure --prefix=/usr --with-mictype=pulseaudio

loading cache ./config.cache checking host system type... x86_64-unknown-linux checking host specific optimization flag... no checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for a BSD compatible install... (cached) /usr/bin/install -c checking for rm... (cached) /bin/rm checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no creating ./config.status creating Makefile creating mkbingram/Makefile creating mkbinhmm/Makefile creating adinrec/Makefile creating adintool/Makefile creating mkss/Makefile creating generate-ngram/Makefile creating jclient-perl/Makefile creating man/Makefile configuring in mkgshmm running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking for a BSD compatible install... (cached) /usr/bin/install -c checking for rm... (cached) /bin/rm checking for perl... (cached) /usr/bin/perl checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no creating ./config.status creating Makefile creating mkgshmm configuring in gramtools running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking host system type... x86_64-unknown-linux checking host-specific optimization flag... no checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for a BSD compatible install... (cached) /usr/bin/install -c checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking host specific optimization flag... skipped checking for rm... (cached) /bin/rm checking for perl... (cached) /usr/bin/perl checking for iconv... (cached) /usr/bin/iconv checking for Jcode module in perl... Can't locate Jcode.pm in @INC (you may need to install the Jcode module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.2 /usr/local/share/perl/5.22.2 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .). BEGIN failed--compilation aborted. configure: warning: no Jcode module in perl, gram2sapixml.pl may not work checking for readline/readline.h... (cached) no checking for malloc.h... (cached) yes creating ./config.status creating Makefile creating mkdfa/Makefile creating mkdfa/mkdfa.pl creating mkdfa/mkfa-1.44-flex/Makefile creating dfa_minimize/Makefile creating generate/Makefile creating accept_check/Makefile creating nextword/Makefile creating yomi2voca/Makefile creating yomi2voca/yomi2voca.pl creating gram2sapixml/Makefile creating gram2sapixml/gram2sapixml.pl creating dfa_determinize/Makefile configuring in jcontrol running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking host system type... x86_64-unknown-linux checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for a BSD compatible install... (cached) /usr/bin/install -c checking for rm... (cached) /bin/rm checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking for gethostbyname... (cached) yes checking for connect... (cached) yes creating ./config.status creating Makefile configuring in julius running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking host system type... x86_64-unknown-linux checking host-specific optimization flag... no checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for a BSD compatible install... (cached) /usr/bin/install -c checking for rm... (cached) /bin/rm checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking for ANSI C header files... (cached) yes checking for working const... (cached) yes checking for winnls.h... (cached) no checking for iconv... (cached) yes checking for iconv declaration... (cached) extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for charset conversion... iconv creating ./config.status creating Makefile creating config.h config.h is unchanged configuring in libjulius running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking host system type... x86_64-unknown-linux checking host-specific optimization flag... no checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for a BSD compatible install... (cached) /usr/bin/install -c checking for rm... (cached) /bin/rm checking for ar... (cached) /usr/bin/ar checking for ranlib... (cached) ranlib checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking for ANSI C header files... (cached) yes checking for working const... (cached) yes checking return type of signal handlers... (cached) void checking for dlopen... (cached) no checking for dlopen in -ldl... (cached) yes checking for POSIX thread library in -lpthread... yes creating ./config.status creating Makefile creating libjulius-config creating libjulius-config-dist creating src/version.c creating doxygen.conf.ver creating include/julius/config.h include/julius/config.h is unchanged configuring in libsent running /bin/sh ./configure --prefix=/usr --with-mictype=pulseaudio --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking host system type... x86_64-unknown-linux checking host specific optimization flag... no checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking how to run the C preprocessor... (cached) gcc -E checking for a BSD compatible install... (cached) /usr/bin/install -c checking for rm... (cached) /bin/rm checking for ar... (cached) /usr/bin/ar checking for ranlib... (cached) ranlib checking for Cygwin environment... (cached) no checking for mingw32 environment... (cached) no checking for executable suffix... (cached) no checking for ANSI C header files... (cached) yes checking for unistd.h... (cached) yes checking whether byte ordering is bigendian... (cached) no checking for working const... (cached) yes checking for socklen_t... yes checking for gethostbyname... (cached) yes checking for connect... (cached) yes checking for strcasecmp... (cached) yes checking for sleep... (cached) yes checking for alsa/asoundlib.h... (cached) no checking for sys/asoundlib.h... (cached) no checking for sys/soundcard.h... (cached) yes checking for esd.h... (cached) no checking for pa_simple_new in -lpulse-simple... (cached) no configure: error: no PulseAudio header! configure: error: ./configure failed for libsent

I don't know why my system cannot see the simple.h - it is in the right place But, the simple.h file is in /usr/include/pulse/simple.h

If someone knows the reason of this error or makes any suggestion please answer me.

kiguaran001 avatar Dec 07 '16 10:12 kiguaran001

Looks like you have no PulseAudio library installed. Install the library using apt-get.

palles77 avatar Dec 07 '16 10:12 palles77

I Have the library installed like this: sudo apt-get update sudo apt-get install libpulse-dev

As I said before, the error says that theres no pulseaudio header, but I got the simple.h file in the correct root and i dont know why my sistem cannot see it.

kiguaran001 avatar Dec 07 '16 11:12 kiguaran001

I Have the library installed like this: sudo apt-get update sudo apt-get install libpulse-dev

As I said before, the error says that theres no pulseaudio header, but I got the simple.h file in the correct root and i dont know why my sistem cannot see it.

Some distros have this problem, If you have tried C programming on different distros. What you can do is adapt the makefile to point real path of libraries, or make new softlink to where libraries should be put.

aviezab avatar Aug 02 '19 11:08 aviezab