Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re: calling perl program from C++

by ikegami (Pope)
on Oct 01, 2011 at 21:28 UTC ( #929069=note: print w/replies, xml ) Need Help??

in reply to calling perl program from C++

You're using the wrong quotes. You are passing

perl -MExtUtils::Embed -e ccopts -e ldopts

as an argument instead of embedding its output in the shell command. Use backticks.

Replies are listed 'Best First'.
Re^2: calling perl program from C++
by baperl (Sexton) on Oct 01, 2011 at 22:29 UTC
    well that works, but now my other perl programs give me the following error
    Can't locate Date/ in @INC (@INC contains: /usr/local/lib/per +l5/site_perl/5.15.2/i686-linux /usr/local/lib/perl5/site_perl/5.15.2 +/usr/local/lib/perl5/5.15.2/i686-linux /usr/local/lib/perl5/5.15.2 .) +
    I went into CPAN and ran force install Date::Manip but it doesn't seem to work...any suggestions....I had it working before I ran the force install ExtUtils::Embed

      ExtUtils::Embed is part of the perl distro. You told cpan to force the installation of Perl. God knows what effect that had, but I'm not going to try it to find out.

        well the error message I get is
        Building Date-Manip !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '/usr/local/lib/perl5/site_perl/5.15.2/Date' Do not have write permissions on '/usr/local/lib/perl5/site_perl/5.15. +2/Date' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at /usr/local/lib/perl5/5.15.2/Module/Build/ line 3574 SBECK/Date-Manip-6.25.tar.gz ./Build install -- NOT OK Failed during this command: SBECK/Date-Manip-6.25.tar.gz : install NO

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://929069]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2016-10-26 15:23 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (341 votes). Check out past polls.