View Full Version : Make File Dependencies
March 31st, 2007, 10:03 AM
I need to install the following modules to make a file:
Any idea how I determine their package names so I can download and install them through the repositories?
March 31st, 2007, 11:34 AM
try `aptitude search'
March 31st, 2007, 12:53 PM
You can also use the Search function in Synaptic. For example, a search for "libwww-perl" finds a package with exactly that name. A search for "html parser perl" results in a few possibilities; the one that you want is probably libhtml-parser-perl.
(This was in dapper; some package names may have been changed in edgy or feisty.)
March 31st, 2007, 02:18 PM
Thanks for the responses.
I'm trying to install http://www.mackers.com/projects/theyoke/. I tried running it without downloading any of those modules but I get the following error:
bash: ./theyoke: /usr/local/bin/perl: bad interpreter: No such file or directory
March 31st, 2007, 02:25 PM
In ubuntu, perl is in /usr/bin, not /usr/local/bin. You could change the first line of the program to
March 31st, 2007, 02:26 PM
replace the first line in the file with:
March 31st, 2007, 02:34 PM
In case you are wondering about the two different suggestions for changing the first line...
Both will work, but lnostdal's is better, because it should work on a wider variety of systems (as long as they have the env command in /usr/bin). The author of theyoke should have used #!/usr/bin/env perl in the first place.
March 31st, 2007, 02:45 PM
Ah, yes, that fixed it. Thanks for that. I installed libwww-perl and libhtml-parser-perl through aptitude as well. I'm still not sure about XML::RSS, URI, Digest::MD5 and Encode. Any idea what these may represent? The aptitude search function returns tons of results.
March 31st, 2007, 02:49 PM
root@ibmr52:~# aptitude search rss | grep perl
p libxml-rss-perl - Perl module for managing RSS (RDF Site Sum
p libxml-rsslite-perl - Lightweight, "relaxed" RSS (and XML-ish) p
root@ibmr52:~# aptitude search uri | grep perl
p courier-filter-perl - purely Perl-based mail filter framework fo
p libgd-securityimage-perl - Security image (captcha) generator.
p liburi-fetch-perl - Smart URI fetching/caching
p liburi-find-delimited-perl - Find URIs which may be wrapped in enclosin
p liburi-find-perl - Find URIs in arbitrary text
i liburi-perl - Manipulates and accesses URI strings
p liburi-query-perl - class providing URI query string manipulat
root@ibmr52:~# aptitude search md5 | grep perl
p libcrypt-passwdmd5-perl - interoperable MD5-based crypt() for perl
v libdigest-md5-perl -
p libmd5-perl - backwards-compatible wrapper for Digest::M
didn't find anything for encode though
March 31st, 2007, 02:50 PM
Try the Search function in Synaptic, and use a few relevant words. For example, I searched for "xml rss perl", and got just one hit: libxml-rss-perl. (But I don't know enough about perl to be able to tell if this provides the module that you need.)
March 31st, 2007, 03:08 PM
It appears that Encode is part of the package perl-modules. You probably already have it installed.
March 31st, 2007, 03:10 PM
I installed a few packages from http://packages.ubuntu.com/feisty/perl/ and using aptitude's search function. Turns out I needed another package called libterm-size-perl that isn't listed on theyoke's web site. Thanks again. :)
I have one last quick question. Let's say I want to copy the output of a program to a file. How would I do that?
March 31st, 2007, 03:13 PM
lars@ibmr52:~/programming/lisp/swtree$ ls > saved-output.txt
lars@ibmr52:~/programming/lisp/swtree$ cat saved-output.txt
March 31st, 2007, 03:28 PM
Thank you very much. :KS
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.