Menu

cygwin error?

Help
2004-12-22
2013-01-15
  • Kevin Oleniczak

    Kevin Oleniczak - 2004-12-22

    I'm following the win32 instructions using the latest cvs source... ran autogen.sh as stated and after going through lots of stuff... I get an error related to libxml version2 (which is installed) and then the error at the end of the log below...

    any thoughts?

    checking for xml2-config... /usr/bin/xml2-config
    checking for libxml - version >= 2.0.0... no
    *** Could not run libxml test program, checking why...
    *** The test program compiled, but did not run. This usually means
    *** that the run-time linker is not finding LIBXML or finding the wrong
    *** version of LIBXML. If it is not finding LIBXML, you'll need to set your
    *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
    *** to the installed location  Also, make sure you have run ldconfig if that
    *** is required on your system
    ***
    *** If you have an old version installed, it is best to remove it, although
    *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
    checking whether to build rigmatrix... no
    checking whether to build C++ binding and demo... yes
    checking for perl headers... ./configure: line 1: cd: C:\Perl\lib/CORE: No such
    file or directory
    found /cygdrive/g/cvsroot.hamlib/hamlib
    checking whether to build perl binding and demo... no
    checking for Tcl configuration... found /usr/lib/tclConfig.sh
    checking for existence of /usr/lib/tclConfig.sh... loading
    checking whether to build tcl binding and demo... no
    checking for python... /usr/bin/python
    checking for python version... 2.4
    checking for python platform... cygwin
    checking for python script directory... ${prefix}/lib/python2.4/site-packages
    checking for python extension module directory... ${exec_prefix}/lib/python2.4/s
    ite-packages
    checking for Python include path... FIND: Invalid switch
    FIND: Invalid switch
    FIND: Invalid switch

    configure: WARNING: cannot find Python include path
    checking whether to build python binding and demo... no
    checking whether to build winradio backend... yes
    checking whether to build gnuradio backend... no
    checking whether to build microtune backend... yes
    checking for rpcgen... no
    checking whether to build rpc backends... no
    checking for swig... no
    checking whether to build bindings... no
    configure: creating ./config.status
    config.status: creating Makefile
    .infig.status: error: cannot find input file: Makefile
    bash-2.05b$

     
    • Mark J. Fine

      Mark J. Fine - 2004-12-22

      First, it's not finding a lot of stuff, to include Python. You might want to run cygwin setup and make sure you have a complete installation. You might also want to check to see that your PATH and other environment variables are getting set up properly. i.e.:
      ACLOCAL_FLAGS=-I /usr/share/aclocal -I /opt/gnome/share/aclocal
      PATH=/usr/qt/bin:/usr/lib/subversion/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin:.:/opt/gnome/bin
      PYTHONPATH=/usr/lib/python2.3:/opt/gnome/lib/gnome-python

      Second, depending upon the cvs tool you use in Windows, some files will be pulled in a PC (CR/LF) format. Files like configure.ac and configure.in need to be in the UNIX format. Autogen (actually autoconf) does not create configure correctly if those files are in the PC format. If you have a tool like Textpad, you can load it in there and save it back in the right format.

      Mark

       
    • Stéphane Fillod

      Which version of cygwin are you running? Have you installed libxml2-devel ? It works fine here with latest:

        checking for xml2-config... /usr/bin/xml2-config
        checking for libxml - version >= 2.0.0... yes (version 2.6.16)

      I recommand you to pass the following options to configure: --without-rpc-backends --without-tcl-binding --without-perl-binding --without-python-binding

      Also when it comes to run autogen.sh, make sure what versions of autoconf/automake/libtool are installed, and also which version is called from the autogen.sh. You'll find some README's helpful in the root directory, esp. README.developer.

      If some documentation was wrong or not clear, please say so, letting us improve it (patches welcome too!).

       
    • Kevin Oleniczak

      Kevin Oleniczak - 2004-12-23

      Lets' start with this...

      I don't know why the check for xml2-config failed on my install as I do have it loaded and in the exact same directory it was trying to look for it. It's really there... really.

      G:\cvsroot.hamlib\hamlib>ls -la /usr/bin/xml2-config
      -rwxr-x---+ 1 admin Users 1558 Nov 13 17:43 /usr/bin/xml2-config

       
      • Mark J. Fine

        Mark J. Fine - 2004-12-23

        Don't know then. Could be something with the macro that checks it. Looking at your file listing, do you have cygwin set up for multiple logins? Or are you just logged into Windows (and run cywin as) admin? That could be a potential issue that I hadn't thought of. Other than that, your file listing looks just like mine.

        Mark

         
    • Kevin Oleniczak

      Kevin Oleniczak - 2004-12-23

      I checked and have all newer versions of the four binnaries needed at the top of autogen.sh

      Also, Does the prefix below have to match the source location?

      --prefix=/usr/local

       
    • Mark J. Fine

      Mark J. Fine - 2004-12-23

      As for the prefix, it really shouldn't matter. It just indicates where it will be installed, if you happen to run make install. The build process will also look under the /usr/local prefix before looking under /usr.

      I just happen to build the Windows version that way so it doesn't conflict with another cygwin-runnable build that I have on the same machine. I use the Windows build for things like Dream, and the cygwin build for other *nix developments (such as Smart Gnome Control).

      Mark.

       
    • Kevin Oleniczak

      Kevin Oleniczak - 2004-12-30

      I'm stuck. I've loaded all developer relatd cygwin packages, set a LD_LIBRARY_PATH in my .bashrc file, checked my path statement... no change in the output from the autogen script. Anyone willing to take a look at this with me?

      Anyone have examples of the path and other environment variables you've had to setup in order to get this to work?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.