Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Where to install a perl application

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

Where to install a perl application

  • Quote

Post by george » Fri May 13, 2005 5:08 pm

I've found an application I want to try out (logrep). It's written in perl and the modules expect to find other modules in a named subdirectory. I can't work out where I ought to put this directory tree.

The website says the rpm puts the files in /usr/local/logrep but (apart from there only being a tarfile, which isn't a problem) as /usr/local only contains empty directories at the moment, I can tell that this isn't the gentoo way.

While I don't mind putting the files under /usr/local to test out the application, I would like to know where I should put them. I haven't found any ebuilds for comparable apps, bugs or forum messages which shed any light on this. I did look at perl-module.eclass but this obviously addresses something quite different. All I need to do is to put the files somewhere - no building needed, no makefile or anything like one.

Can anyone point me at anything useful or give me their opinion (I can't imagine that there's a single right answer that no-one disagrees with :wink: )

TIA, George.
Top
gwolf
Guru
Guru
User avatar
Posts: 374
Joined: Thu May 05, 2005 9:07 am
Location: Estonia

  • Quote

Post by gwolf » Fri May 13, 2005 5:21 pm

As I understand you have some perl modules (.pm) and you need to put them some place where Perl can find them.
I would place them under
/usr/lib/perl5/vendor_perl/5.8.6/
or something similar, depending on your Perl version.
Top
TrueDFX
Retired Dev
Retired Dev
Posts: 1348
Joined: Wed Jun 02, 2004 5:33 pm

  • Quote

Post by TrueDFX » Fri May 13, 2005 5:29 pm

My opinion would be to install the main program in /usr/bin and the modules in /usr/lib/logrep, or perhaps stuff it all in /usr/lib/logrep and create a symlink in /usr/bin. No point in installing private modules for use by all applications. But that's just my opinion, and as you posted, others may have entirely different opinions.
Top
george
n00b
n00b
Posts: 67
Joined: Wed Jun 12, 2002 12:57 pm
Location: UK

  • Quote

Post by george » Fri May 13, 2005 6:12 pm

gwolf wrote:As I understand you have some perl modules (.pm) and you need to put them some place where Perl can find them.
I would place them under
/usr/lib/perl5/vendor_perl/5.8.6/
or something similar, depending on your Perl version.
Not quite...

There's a bin directory containing *.pl.
Each .pl has lines similar to

Code: Select all

use FindBin qw($Bin);
use lib "$Bin/util/perl";
which (if I'm guessing right as I don't know perl) tells perl to look in a subdirectory of bin for modules.

The subdirectories have *.pm among other files.

As I read this, I have to keep the directory tree under bin or I would have to go through each file and edit paths. For trying out the app, at least, it's not worth working out what to edit.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic