tcf22 has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to install Bundle::Xmms using the following command
perl -MCPAN -e shell install Bundle::Xmms
But when it is building I get the following error
make[1]: Entering directory `/root/.cpan/build/Xmms-Perl-0.12/Config' cp Config.pm ../blib/lib/Xmms/Config.pm /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/ +perl5/5.8.0/ExtUtils/typemap Config.xs > Config.xsc && mv Config.xsc + Config.c gcc -c -I/usr/include/glib-1.2 -I/usr/lib/glib/include -D_REENTRANT - +D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/ +usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/i +nclude/gdbm -O2 -march=i386 -mcpu=i686 -g -DVERSION=\"0.01\" -DXS_V +ERSION=\"0.01\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi +/CORE" Config.c Config.xs:5:29: xmms/configfile.h: No such file or directory Config.xs:7: parse error before '*' token Config.xs:7: warning: data definition has no type or storage class Config.c: In function `XS_Xmms__Config_new': Config.c:70: `gchar' undeclared (first use in this function) Config.c:70: (Each undeclared identifier is reported only once Config.c:70: for each function it appears in.) Config.c:70: `filename' undeclared (first use in this function) Config.c:71: parse error before "RETVAL" Config.c:76: parse error before ')' token Config.xs:44: `RETVAL' undeclared (first use in this function) Config.c: In function `XS_Xmms__Config_DESTROY': Config.c:101: parse error before "cfg" Config.c:105: `cfg' undeclared (first use in this function) Config.c:105: called object is not a function Config.c: In function `XS_Xmms__Config_write_file': Config.c:122: parse error before "cfg" Config.c:123: `gchar' undeclared (first use in this function) Config.c:123: `filename' undeclared (first use in this function) Config.c:123: parse error before ')' token Config.c:124: `gboolean' undeclared (first use in this function) Config.c:124: parse error before "RETVAL" Config.c:129: `cfg' undeclared (first use in this function) Config.c:129: called object is not a function Config.c:134: `RETVAL' undeclared (first use in this function) Config.c: In function `XS_Xmms__Config_remove_key': Config.c:147: parse error before "cfg" Config.c:148: `gchar' undeclared (first use in this function) Config.c:148: `section' undeclared (first use in this function) Config.c:148: parse error before ')' token Config.c:149: `key' undeclared (first use in this function) Config.c:149: parse error before ')' token Config.c:153: `cfg' undeclared (first use in this function) Config.c:153: called object is not a function Config.c: In function `XS_Xmms__Config_read': Config.c:170: parse error before "cfg" Config.c:171: `gchar' undeclared (first use in this function) Config.c:171: `section' undeclared (first use in this function) Config.c:171: parse error before ')' token Config.c:172: `key' undeclared (first use in this function) Config.c:172: parse error before ')' token Config.xs:77: `value' undeclared (first use in this function) Config.c:181: `cfg' undeclared (first use in this function) Config.c:181: called object is not a function Config.c: In function `XS_Xmms__Config_write': Config.c:207: parse error before "cfg" Config.c:208: `gchar' undeclared (first use in this function) Config.c:208: `section' undeclared (first use in this function) Config.c:208: parse error before ')' token Config.c:209: `key' undeclared (first use in this function) Config.c:209: parse error before ')' token Config.c:210: `value' undeclared (first use in this function) Config.c:210: parse error before ')' token Config.c:214: `cfg' undeclared (first use in this function) Config.c:214: called object is not a function make[1]: *** [Config.o] Error 1 make[1]: Leaving directory `/root/.cpan/build/Xmms-Perl-0.12/Config' make: *** [subdirs] Error 2 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Bundle summary: The following items in bundle Bundle::Xmms had install +ation problems: Xmms

Has anyone experienced this before?

Replies are listed 'Best First'.
Re: Installing Bundle::Xmms
by Aristotle (Chancellor) on Aug 11, 2003 at 20:53 UTC
    Config.xs:5:29: xmms/configfile.h: No such file or directory
    Can you locate that file? If not, on many distros you will probably need to install a package called xmms-devel or something similar. Is xmms-config present, and if so what does it say about which directories the include files should be in?

    Makeshifts last the longest.

      I have xmms-devel installed. I've found it at /usr/include/xmms/configfile.h. How do I get the CPAN module to look there for included files?

      UPDATE:
      Dumb question now that I think of it.
      perl -MCPAN -e 'push(@INC, "/usr/include");shell'
        Hi Im running Fedora Core 1 with perl-5.8.3-16 xmms-1.2.10-2.fdr.0.1 xmms-devel-1.2.10-2.fdr.0.1 When I do
        # perl -MCPAN -e
        I obtain this warning
        Undefined value assigned to typeglob at (eval 15) line 15, <RC> line 1 +1. Warning [/etc/inputrc line 11]: Invalid variable `mark-symlinked-directories' cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support enabled cpan> install Bundle::Xmms
        give this error:
        --snip--- En el fichero incluído de Config.xs:5: /usr/include/xmms/configfile.h:21:18: glib.h: No existe el fichero o e +l directorio In file included from Config.xs:5: /usr/include/xmms/configfile.h:25: error: error sintáctico before "gch +ar" /usr/include/xmms/configfile.h:27: error: error sintáctico before '}' +token /usr/include/xmms/configfile.h:32: error: error sintáctico before "gch +ar" /usr/include/xmms/configfile.h:34: error: error sintáctico before '}' +token /usr/include/xmms/configfile.h:39: error: error sintáctico before "GLi +st" --snip-- make[1]: *** [Config.o] Error 1 make[1]: Saliendo directorio `/root/.cpan/build/Xmms-Perl-0.12/Config' make: *** [subdirs] Error 2 /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible Bundle summary: The following items in bundle Bundle::Xmms had install +ation problems: Xmms
        I turned off the option in /etc/inputrc but errors persist, I comented the line and the same. I do
        perl -MCPAN -e 'push(@INC, "/usr/include");shell'
        and I got the same errors. any ideas?