Closed shedd closed 10 years ago
I came across Carton - https://github.com/miyagawa/carton - (seems to be Bundler for Perl). Might be something to look at in this context?
The documentation doesn't make this intuitive and I got stuck at this part too. But you basically need to run duckpan installdeps
inside of a cloned zeroclickinfo repo.
For example
git clone https://github.com/duckduckgo/zeroclickinfo-spice.git
cd zeroclickinfo-spice
duckpan installdeps # Installed Text-Trim dependency
duckpan server --verbose # Runs a duck duck go server on localhost:5000
Thanks @vasanthelavarasan - that's definitely the preferred solution.
Just pushed a change to implement this
The DuckDuckGo repos have dependencies compiled in dist.ini - I'm somewhat unfamiliar with Perl dependency management techniques, but this seems to be used for http://dzil.org
However, the DuckPAN installation doesn't seem to use this information to ensure dependencies are installed. When I sync one of the DDG zeroclickinfo repos into the Vagrant box (I tested zeroclickinfo-spice and zeroclickinfo-goodies so far), I hit Perl dependency issues that I need to resolve manually.
Seems like there should be a better way!