Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Error in perlapp command

by Chhabi (Initiate)
on Oct 29, 2014 at 12:29 UTC ( [id://1105457]=perlquestion: print w/replies, xml ) Need Help??

Chhabi has asked for the wisdom of the Perl Monks concerning the following question:

Hi All, I am getting below error while trying to generate binary file using perlapp command :
"Can't determine home directory
BEGIN failed--compilation aborted at /</usr/bin/../lib/pdklib.so>PerlApp/ModDep.pm line 5. BEGIN failed--compilation aborted at perlapp line 78."
Your valuable suggestions are appreciated.
Thanks, ------------------------------------------ Please find some more specifications :
Actually we have one perl script (test.pl ) and we need to make binary code of this script. For generating binary code we are using something like below command :

perlapp --lib $Bin/chhabi/ --force --trim Apache2::RequestUtil --add HTTP::Daemon test.pl 1>$scFile 2>$errorFile
This is working perfectly for windows environment however for linux it is giving below error in error file :
Can't determine home directory
BEGIN failed--compilation aborted at
/</usr/bin/../lib/pdklib.so>PerlApp/ModDep.pm line 5.
BEGIN failed--compilation aborted at perlapp line 78.
Could someone please help with this error ? Thanks ,

Replies are listed 'Best First'.
Re: Error in perlapp command
by perlron (Pilgrim) on Oct 30, 2014 at 08:09 UTC

    Hello Chabbi,
    Thanks for adding more info. However if noting works, i also feel that it would be prudent to paste the test.pl code as well within code brackets here as well. that way one of us can run it and see :D
    as you say that making a binary version of the script is working fine on windows.
    It is likely your test.pl has a file pathpath that is not computing or even an environment variable like $Bin in the command line which is not being interpreted.
    btw what is $bin ? is that supposed to stand for the home directory ? try to give the exact path to chhabi folder instead of $bin.
    also i hope u have taken the trouble to go through the documentation http://docs.activestate.com/pdk/9.3/PerlApp.html

    The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code
Re: Error in perlapp command
by rashidn (Initiate) on Sep 02, 2015 at 05:05 UTC
    I think it clearly says, Cant find the home directory. Put an env command and run again. Check that HOME=/root has been set or not :)
Re: Error in perlapp command
by perlron (Pilgrim) on Oct 29, 2014 at 16:15 UTC

    Please update your post with some more specific information about your environment (im guessing windows) , and what steps u have taken so far , and how to reproduce your problem ?

    The temporal difficulty with perl is u need to know C well to know its awesome.else u just keep *using* it and writing inefficient code

      "im guessing windows"

      Bad guess:

      lib/pdklib.so

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1105457]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-03-28 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found