Skip Menu |

This queue is for tickets about the JavaScript-V8 CPAN distribution.

Report information
The Basics
Id: 97579
Status: resolved
Priority: 0/
Queue: JavaScript-V8

People
Owner: Nobody in particular
Requestors: richie765 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Full Mac OS X installation instructions
Date: Mon, 28 Jul 2014 23:04:00 -0500
To: bug-JavaScript-V8 [...] rt.cpan.org
From: "Richard Faasen" <richie765 [...] gmail.com>
I found this module very useful, unfortunately it doesn't install right out of the box due to changes to the V8 API. The following are detailed instructions for installing on OS X, perhaps it could be placed into the POD. Install proper GCC --- brew install apple-gcc42 Install correct V8 version (3.15.11) --- cd /usr/local/Library/Formula git show e3ca3099c97ec26c66331c2100eaee87a1125092:Library/Formula/v8.rb Show quoted text
> /tmp/v8.rb
brew unlink v8 brew install /tmp/v8.rb cd /usr/local/lib cp libv8.dylib libv8perl.dylib chmod +w libv8perl.dylib install_name_tool -id /usr/local/lib/libv8perl.dylib libv8perl.dylib chmod -w libv8perl.dylib Unpack CPAN package and make some changes --- cpanm --look JavaScript::V8 vi Makefile.PL Line 10: Change v8 to v8perl Line 16: Change g++ to g++-4.2 Line 25: Change -lv8 to -lv8perl Compile and install --- V8_DIR=/usr/local/Cellar/v8/3.15.11 perl Makefile.PL make make test make install
On 2014-07-28 21:04:11, richie765@gmail.com wrote: Show quoted text
> I found this module very useful, unfortunately it doesn't install right > out of the box due to changes to the V8 API. The following are detailed > instructions for installing on OS X, perhaps it could be placed into the > POD.
Show quoted text
> Unpack CPAN package and make some changes > --- > cpanm --look JavaScript::V8 > vi Makefile.PL > Line 10: Change v8 to v8perl > Line 16: Change g++ to g++-4.2 > Line 25: Change -lv8 to -lv8perl
Since it's possible for the Makefile.PL to detect the architecture and OS version, it could adjust its own parameters and make these manual changes unnecessary.
What would be even better is to have an Alien::v8. However, I can't really put things as specific as these instructions in the POD (including to use a bespoke name for the library). The use of ExtUtils::CppGuess should help because that works fine with clang++. Closing but please reopen if problems remain! As Ether says, this really should work out of the box, and I will fix it till it does!