Help running a perl script

I'm trying to setup UBH (usenet binary harvester). Nobodies made a pacman pkg for it yet, so I'm having to do it all myself. I try running it, but I get this error:
[root@myhost ubh-2.5]# ./ubh
Can't locate News/Newsrc.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i686-linux-thread-multi /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./ubh line 1425.
BEGIN failed--compilation aborted at ./ubh line 1425.
I'm *guessing* it is becuase I am missing some required libraries. The readme says I need
Net::NNTP (part of the libnet distribution)
News::Newsrc
Set::IntSpan (not used directly, required by News::Newsrc)
MIME::Parser (from the MIME-tools distribution)
MIME::Base64
IO::Stringy
The MailTools distribution
So what pakaged do I need to download in order to get it to work?

cuallito wrote:
I'm trying to setup UBH (usenet binary harvester). Nobodies made a pacman pkg for it yet, so I'm having to do it all myself. I try running it, but I get this error:
[root@myhost ubh-2.5]# ./ubh
Can't locate News/Newsrc.pm in @INC (@INC contains: /usr/lib/perl5/5.8.6/i686-linux-thread-multi /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at ./ubh line 1425.
BEGIN failed--compilation aborted at ./ubh line 1425.
I'm *guessing* it is becuase I am missing some required libraries. The readme says I need
Net::NNTP (part of the libnet distribution)
News::Newsrc
Set::IntSpan (not used directly, required by News::Newsrc)
MIME::Parser (from the MIME-tools distribution)
MIME::Base64
IO::Stringy
The MailTools distribution
So what pakaged do I need to download in order to get it to work?
hi,
well it seems you need at least
News::Newsrc
and Set::IntSpan
for others you may need, use the  search

Similar Messages

  • Under a GUI, I need to run a perl script, how to do this?

    Hi - I am writing a GUI for my clients and one of the things my program must do is run a perl script. I am able to run perl.exe but it seems like perl.exe is not running the script. I also tried to put the perl script in a batch file and then call the batch file from my java GUI program. I still get the same issue of just perl.exe running but thats not running the script. My last attempt was to write a small class to test if perl.exe can run the script under a command line. I got the perl.exe to run the perl script but how do I but implement that class in my GUI if my test class needs a command line? How can I run a command line in my GUI so the perl script can be run.
    The Runtime.getRuntime.exec(RunPerlScript) is not working like I want it.
    I also tried Runtime r = Runtime.getRuntime();
    Process p = r.exec(RunPerlScript);
    How can I run the MS-DOS prompt from my program if the Runtime Environment is running already. The Runtime Environment seems to not allow another prompt to be opened and from there I can run the perl script manually or automatically from my program.
    What does the "cmd /c start..." or "c:\\windows\\command.com..." do? I have seen that in the forum but it doesn't seem to be running the perl script. The perl.exe runs, but not the perl script. I need anyones help desperately. Damn microsoft, why did they remove completely the functionality of DOS. I have a feeling my program will run perfectly under a UNIX environment, because I needed to do was open another shell. Thats what I need in windows!
    Thank you for your help.
    Seigot

    hi
    I am working on this perl scripts do run on GUI's well the process command is fine try java 1.3 it works fine. if u need more help let me know
    all the best

  • Is there any possibility running a Perl Script in JSP?

    Is there any possibility running a Perl script in JSP and get the value of the JSP variable? The JSP page is running in TOMCAT 5.0 server.

    i am created one script .... i want to replace it the older one ... it is possible in development server ..... is there any possibility to assingn the form in quality server ?????
    is there any other way to assign the form to transaction with out using NACE?.
    Well regarding you question about the system to have it assigned, ideally you need to assign it in development and mopve it up stacks. However, i aint sure of the roles you are assigned with for doing any config changes in QS. and the config needs to be done through NACE. Following is the process.
    You need to first find the Output type and the standard form attached to the existing program/ tcode. This info can be fetcehd from TNAPR table. Once you have got the details, you can then get into NACE tcode to configure your new custom form instaed of the existing Standard one. Get the application type, output type from TNAPR table. Then select the particular outpput type in NACE nad click on processing routine. This is the place where the new form name needs to be updated.
    Hope this helps!
    Cheers!
    Varna
    Edited by: Varna17 on Sep 24, 2009 7:10 AM

  • Running a Perl script

    I have two things I need to do. First is, figure out how to run a perl script. Second, I need to use the cron to run it every 2 hours.
    How would I do both of these?

    crontab -e
    0 0-23/2 * * * curl "http://... "
    Will run the command every 2 hours on the hour. If you want to run a quarter after the hour then
    15 0-23/2 * * * curl "http://... "
    Change the first number to whatever minute after the hour you want the cron job to run.
    See the man page
    man 5 crontab

  • How to run the perl script from java ?

    Hi , I need to run the pearl script from the server and to get the result of the script thro' java using SSH
    Is there any 3rd party SSH API in java ?
    Please help me out
    thanks in advance
    karthik

    This seems like a very strange thing to want to do.
    What is the perl script doing?
    Do other programs (not some shell script) access this server-side perl script from a different machine?
    If so how do they do it?
    What currently triggers the perl script to execute?
    What currently handles the output from the perl script?
    If you can answer these questions (and understand the answers) you should be able to come up with a different approach to this.
    You do not really want to call a remote perl script from a Java program, you want to achieve the effect you think that would have if you could do it.
    So find the answers to the above questions, write them on 3" x 5" cards and lay them out on your desk.
    What flow of control needs to happen? Which piece of code needs to produce or consume which piece of data?
    If that fails, ask you self or who ever is making you do this what are the use-cases?
    If you do not know what use-cases are or do not understand them well enough try reading
    Use Case Modeling (The Addison-Wesley Object Technology Series) by Kurt Bittner and Ian Spence (Paperback - Aug 30, 2002)
    http://www.amazon.com/s/ref=nb_ss_gw/002-7908514-4043267?url=search-alias%3Dstripbooks&field-keywords=use+cases&x=0&y=0
    It is a short and easy to read book on the subject and also one of the best.
    You MUST understand WHAT you are trying to achieve before you can decide HOW you are going to achieve it.

  • How to run NMS perl scripts in SunONE 6.1

    Any one have info on running the NMS perl scripts with the perl compiler shipped with 6.1? Particularly interested in nms FormMail. I need to get it running in on windows xp and Sun Solaris.
    WebServer is reporting the following error.
    failure: for host dbmrpm41.deluxe.com trying to POST /cgi-bin/FormMail.pl, cgi_s
    can_headers reports: HTTP4044: the CGI program C:\Sun\WebServer6.1\bin\https\per
    l\perl.exe did not produce a valid header (program terminated without a valid CG
    I header. Check for core dump or other abnormal termination)
    When I run FormMail.pl in a command prompt, I receive the following:
    Can't locate auto/POSIX/autosplit.ix in @INC (@INC contains: C:/Sun/WebServer6.1
    /bin/https/perl/lib/MSWin32-x86 C:/Sun/WebServer6.1/bin/https/perl/lib) at C:/Su
    n/WebServer6.1/bin/https/perl/lib/AutoLoader.pm line 146.
    at C:/Sun/WebServer6.1/bin/https/perl/lib/MSWin32-x86/POSIX.pm line 5
    Edited by: garyb on Mar 18, 2008 9:04 AM

    The Perl you found in the bin/https/perl directory is a private copy of Perl used to implement parts of the Web Server Administration Server. You shouldn't try to use it to run CGI scripts.
    Instead, you can download your own Perl distribution. ActiveState has a Perl distribution called ActivePerl. You can get it for free from http://www.activestate.com/Products/activeperl/. Other options are listed at http://win32.perl.org/.

  • Running a perl script outside local directory

    so i have been trying to write a java program that calls a certain perl script "helloworld.pl" using the runtime.exec method.
    Runtime.getRuntime().exec("perl helloworld.pl");the problem comes in when i attempt to run a helloworld.pl that is not in the local directory.
    Runtime.getRuntime().exec("perl C:/helloworld.pl");how would i properly execute the line of code above?

    and since 'perl' will pick up files from the current working directory you can also use
    Process process = Runtime.getRuntime().exec("perl helloworld.pl", null, new File("C:\\"));  // or whatever directory is your perl program is in.P.S. You should read thoroughly the 4 sections of [http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html] and implement ALL the recommendations.

  • Please help: Running a java script form the windows command line.

    Hello forum,
    I'm trying to run a java script from the command line on
    windows but I always get the "Failed to open document" alert.
    I typed the following in the run command line:
    "flash.exe" C:\Documents and Settings\Hasan.Atieh\My
    Documents\science\java scripts\testing jsfl\get_files_mx2004.jsfl
    now I copied and pasted the path of my java script file from
    the windows explorer address bar so I'm sure that the java script
    file exists in the specified path.
    Any thoughts why am I getting the message!!

    :oops: never mind... issue resolved. I didn't quote the java
    script file path but thats because the help documents on flash
    didn't say that.
    this is what flash help say:
    To run a script from the command line on Windows:
    Use the following syntax (add path information as required):
    "flash.exe" myTestFile.jsfl

  • Need help running a Python script when DVD inserted

    We had an intern that created a custom Python script to rip our old event recording DVDs back to a digital format. The script creates a JSON description file and asks a set of questions to create the metadata in the JSON file (e.g. Date of event).
    The way the intern set this up was that you'd click on the Python script which would open a terminal window where you fill in the metadata. It then asks if the DVD is in the computer. At this point you place the DVD in. A few seconds later, the Python script notices the DVD and proceeds to rip the DVD at our specific file size requirements along with the inputted metadata.
    We then upgraded the Mac from Mountain Lion to Lion and the script stopped working. Our intern has since left. I have now moved the Python script onto my Mountain Lion Mac. The intern's last message to me was that he had written an AppleScript that ran when the DVD was inserted which then referred to the Python script. The intern has since stopped replying to emails.
    This is a very important project that I would like to continue. Any help would be greatly appreciated!

    well, oddly, that should never have worked. 
    Try this:  open the applescript editor, copy in the following line:
    tell application "Terminal"
              do script "python /Users/medialab/dvddrip rename"
              activate
    end tell
    Save it, making sure that the 'File Format' pull down says Script (the new file will have a '.scpt' extension). You'll be able to select that file in the cd/dvd preferences.
    I assumed that you wanted this to open in terminal so that you can enter options on the command line. If that's not correct, let me know.

  • Help with Simple Perl script, its sooo simple!!!

    i know this isnt java but i need to know how to do this for class for this class is a prerequisite to the java servlets class. Please help, i am just starting to learn perl and this error doesnt make sence to me.
    this is my error...
    Unquoted string "cnt" may clash with future reserved word at c:\inetpub\wwwroot\ANDwebs\cgi-bin\form2.pl line 19.
    Can't modify constant item in postincrement (++) at c:\inetpub\wwwroot\ANDwebs\cgi-bin\form2.pl line 19, near "cnt++"
    Execution of c:\inetpub\wwwroot\ANDwebs\cgi-bin\form2.pl aborted due to compilation errors.
    this is my code...
    #!/usr/bin/perl -w
    print "Content-type: text/html \n\n";
    read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
    @fields = qw(fullName compName add1 add2 city state zip email dayPhone evePhone fax);
    @pairs = split(/&/, $buffer);
    @values;
    $cnt;
    foreach $key (@pairs)
    ($name, $value) = split(/=/, $key);
    $value =~ tr/+/ /;
    $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
    $value =~ s/<!--(.|\n)*-->//g;
    $values[cnt++] = $value;
    foreach $key (@fields){
    print "$key";
    }

    $values[cnt++] = $value;cnt should be $cnt.
    Also remember to always put:
    use strict;
    at the beginning of all your Perl programs!!!
    However, the fact that this is for a class that is a prerequisite for a Java class doesn't make this a Java question. Please post your Perl questions to the comp.lang.perl.* newsgroups.

  • Help running ./configure script

    Trying to install 3rd party software. Attempting to run ./configure. Terminal keeps saying "No such file or directory." Can anyone provide me a little more info on how to run this script than the reference book I'm using?

    the file name is simpson-1.1.2-macosx-intel.tar
    I notice that the file has no file name beyond .tar Does this mean I still need to decompress it?
    Before I started using Terminal with this file, I (may have) decompressed it just by double clicking on the file. This created a folder and in the folder was a readme document and 3 other folder, one containing documents and the others for the /usr/local/bin and /usr/local/lib directories.
    Here are some of the instuctions given in the INSTALL document (being new to Unix, these instructions arent perfectly clear to me):
    Basic Installation
    ==================
    These are generic installation instructions.
    The `configure' shell script attempts to guess correct values for
    various system-dependent variables used during compilation. It uses
    those values to create a `Makefile' in each directory of the package.
    It may also create one or more `.h' files containing system-dependent
    definitions. Finally, it creates a shell script `config.status' that
    you can run in the future to recreate the current configuration, a file
    `config.cache' that saves the results of its tests to speed up
    reconfiguring, and a file `config.log' containing compiler output
    (useful mainly for debugging `configure').
    If you need to do unusual things to compile the package, please try
    to figure out how `configure' could check whether to do them, and mail
    diffs or instructions to the address given in the `README' so they can
    be considered for the next release. If at some point `config.cache'
    contains results you don't want to keep, you may remove or edit it.
    The file `configure.in' is used to create `configure' by a program
    called `autoconf'. You only need `configure.in' if you want to change
    it or regenerate `configure' using a newer version of `autoconf'.
    The simplest way to compile this package is:
    1. `cd' to the directory containing the package's source code and type
    `./configure' to configure the package for your system. If you're
    using `csh' on an old version of System V, you might need to type
    `sh ./configure' instead to prevent `csh' from trying to execute
    `configure' itself.
    Running `configure' takes awhile. While running, it prints some
    messages telling which features it is checking for.
    2. Type `make' to compile the package. ....

  • Problem in running Perl script through oracle

    Hi,
    I am facing one problem in perl script.
    " I have one perl script which is interact with sybase database.We have migrated the sybase database to oracle successfully.Now i wanna to change the perl script to interact with oracle database.
    I am using the code like that for interacting the oracle database
    Old Code with sybase database : use DBI::Sybase::GFAS;
    New code with oracle database : Use DBI::oracle::GFAS;
    When i am running the perl script,Its showing the below mentioned error:
    Can't locate DBI/oracle.pm in @INC (@INC contains: C:\oracle\product\10.2.0\db_1
    \perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib/MSWin32
    -x86-multi-thread C:\oracle\product\10.2.0\db_1\perl\5.8.3\lib C:\oracle\product
    \10.2.0\db_1\perl\5.8.3\lib\MSWin32-x86 C:\oracle\product\10.2.0\db_1\perl\site\
    5.8.3 C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib/MSWin32-x86-multi-thread
    C:\oracle\product\10.2.0\db_1\perl\site\5.8.3\lib C:\oracle\product\10.2.0\db_1
    \sysman\admin\scripts C:/Perl/lib C:/Perl/site/lib .) at hello.pl line 4.
    BEGIN failed--compilation aborted at hello.pl line 4.
    Anyone have any idea about this error.
    Thx in advance.

    If you look in the oracle home in the perl\site\5.8.3\lib\MSWin32-x86-multi-thread directory you will see two directories. Once is DBI and one is DBD.
    All you need in your perl program is a line 'use DBI'. It will use DBD automatically as and when required. You can specify the necessary connection information when you issue the DBI->connect statement.
    I have successfully managed to connect to Oracle databases and perform DML using the software installed by default. You don't need to download and install anything else.
    I'm no perl expert so maybe some functionality is missing using the interfaces provided by Oracle but for my needs it has sufficed.
    Hope this helps.

  • Perl script running - "text file busy" error?

    Hiya--
    Recently, whenever I try to run a perl script, I get the following error:
    tcsh: nameofscript.pl: Text file busy.
    The permissions on the perl script are set to 755, and this error message occurs whether I type "nameofscript.pl" or "./nameofscript.pl" at the prompt. The initial line is of the script is
    #!/usr/bin/perl
    Has anyone else encountered this problem? I can't for the life of me figure out why it's occurring now. (I've run this script before without any problems. It's only within the last 2-3 weeks that this error pops up and won't go away, and only for .pl scripts.)
    Advice much appreciated.
    iBook Mac OS X (10.4)
    iBook   Mac OS X (10.4)  

    Hi Mahesh,
    I could suggest you some services that you may stop in Windows platform.. If not You may look into some services
    with analogous names and stop them. But you may go about stopping all database and SAP J2E services.
    The services are
    saposcols
    sapj2e00
    sapj2e01
    Hope this helps.
    Deepa

  • Can I run perl scripts on a iplanet App Server instead of web server

    Hello,
    We have some perl scripts running on a iWS 6.0 in DMZ (Tier1) which acess Oracle Server(Tier 3). I want to restrict machines on DMZ access Oracle server directly. Instead I want all the database calls to orignate from iPlanet App server on Tier 2. To make this happen I have to run Perl scripts on App server. Is this feasible as the J2EE iPlanet App can run only C++ or Java.. Any leads helps me lot..
    Thanks
    Sudhir Nallagangu

    According to the J2EE specs you should use EJBs and Servlets in the iAS! Running a perl script for db access sounds like good old cgi times.
    But generally it is possible to call a perl script from within iAS. But don't do it!

  • Perl script run

    I have a perl script that has to be run by a servlet ....
    Can anybody tell me how to do that or where to look for some tutorial or
    code to learn the process.
    Thanks in advance.

    Run the perl script as a cgi script. Have the servlet call the cgi script using HttpURLConnection.

Maybe you are looking for

  • EAR file download from PI server

    Hi Experts, we have deployed a adapter module in our Quality system sometime back directly from NWDS using SDM. As I didnt had the backup of my EAR file and my system got crashed, i lost the code. Please let me know where can i download(Folder locati

  • Adobe PDF Pack - Can I create a Table of Contents in combined PDF files I am creating?

    Can I create in Adobe PDF Pack a table of contents for PDF files I am combining?  If the answer is YES do I name each of the PDF documents name the name I want the page to be named in the Table of Contents? Thank  you. Michael

  • Oracle BI 11g: Error at the step - "Creating BI Server System Components"

    I am attempting to install Oracle BI 11g on a Windows VM. The installation process completes successfully. However, the configuration process errors out at the step - Creating BI Server System Components. The last entry in the install log is as below

  • Any news about splashtop on S10

    It seems impossible to confirm  if S10 is being shipped with Splashtop.  I would like to purchase one from J&R but will hold off until confirmation.   Anyone received S10 with Splashtop on it?

  • Agent Desktop *Alerts? Possible to implement?

    A supervisor has asked if there is any way to implement some sort of alert on the agent desktop. The reason why is, many of the agents are assigned projects in which some cases, they are set to "Not Ready" while working on these projects. However, th