in reply to Re^2: Problems with Inline::C on Ubuntu
in thread Problems with Inline::C on Ubuntu

Glad it worked. The suggestion to try a command line compile was simply to make sure you had a working setup - you do so all is well. You will find an extensive C tutorial here

As anonymous monk asks above, how did you actually install Inline::C? As a binary package? Anyway now you have C working the usual methods described in A Guide to Installing Modules should work for just about everything.

As you note your C compiler will often spew a scary long list of errors. It pays to concentrate on fixing just the first error (or chunk or errors) as once the compiler chokes most of the rest of the output is more or less meaningless. As soon as you fix the initial problem things will either work or you will have a whole new long list of errors!

  • Comment on Re^3: Problems with Inline::C on Ubuntu

Replies are listed 'Best First'.
Re^4: Problems with Inline::C on Ubuntu
by Anonymous Monk on Apr 22, 2008 at 11:37 UTC
    $ apt-cache depends libinline-perl libinline-perl Depends: perl Depends: <libdigest-md5-perl> perl Depends: libparse-recdescent-perl |Recommends: gcc Recommends: <c-compiler> bcc gcc gcc-3.3 gcc-3.4 gcc-4.1 gcc-4.2
    The problem lies with the fact that Inline::C gets packaged with Inline in the debian package. So i t can't properly require that you have a C compiler or proper headers(because you might just be installing this as a dependency of Inline::Octave)
      So i t can't properly require that you have a C compiler or proper headers(because you might just be installing this as a dependency of Inline::Octave)

      Seriously ... they do that ??

      Assuming you're correct, it's laughable (in the sense of "deplorable and ridiculous") that debian would install Inline::C without ensuring that those requisite headers (and the C compiler) are also installed.

      Actually, in any case, I find it laughable that linux distros in general install broken builds of perl by default. Why do they do that ? Can't they afford the extra space on a 400GB hard drive ?

      Cheers,
      Rob
Re^4: Problems with Inline::C on Ubuntu
by Dr. Mu (Hermit) on Apr 22, 2008 at 14:54 UTC
    I actually did install Inline::C using CPAN. During the install, it detected that Perl had been compiled with cc, found cc on my system, and continued with the install. It also ran two test harnesses. The only difference between them that I could detect was in the paths provided in their invocations to the C libraries. The first harness passed, with one test skipped. The second failed completely. Being a glass-half-full type of person, I decided that was good enough. It wasn't.

    While following tachyon-II's suggestion, I had to insert the Kubuntu live CD, from which the header files were extracted. So far as I could tell, nothing was downloaded from the 'net during that process.

    I do like Ubuntu, but after an install, you're left with something rather more skeletal than was the case with, say, Mandrake.

    -Phil