Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#4 Error during setup

open
Tim De Pauw
None
5
2007-03-31
2007-03-28
Anonymous
No

Can't locate Chirpy.pm in @INC (@INC contains: /src/modules /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at setup.pl line 38.
BEGIN failed--compilation aborted at setup.pl line 38.

Does anyone know what I'm doing wrong?

duckmagicuk2@googlemail.com

Discussion

  • Tim De Pauw
    Tim De Pauw
    2007-03-28

    • assigned_to: nobody --> ceetee
    • status: open --> pending
     
  • Tim De Pauw
    Tim De Pauw
    2007-03-28

    Logged In: YES
    user_id=642776
    Originator: NO

    I think you need to remove the leading forward slash in '/src/modules', so it becomes a relative path.

     
  • Logged In: NO

    OK... I'm really stuck now. I may just start the configuration again.

    I have a public_html folder on my server. Inside this is a cgi-bin folder containing my index.cgi and setup.pl

    Inside the public_html folder is the res folder.

    The src and ini file are outside of the public_html folder.

    Is this all OK so far?

    Now, I think my problem may be based around the server addresses. Are addresses beginning "./" absolute addresses or is it simply those with "/" ? And I assume by relative path you mean that without the leading forward slash the src folder would be int he same folder as the setup.pl file??

    Ta.

     
    • status: pending --> open
     
  • Tim De Pauw
    Tim De Pauw
    2007-03-28

    Logged In: YES
    user_id=642776
    Originator: NO

    It sounds like you're on the right track.

    "." is the current directory, so "./foo/bar" is the same as "foo/bar". "/foo/bar", on the other hand, starts from the root directory ("/"), which you don't have access to.

     
  • Logged In: NO

    Thank you. I have the paths sorted now I think... I'm glad I'm moving forward with this. I've never actually uploaded to a server before but I'm learning loads.

    I now, for some reason, get this error...

    syntax error at setup.pl line 51, near ")
    my "
    Global symbol "$cgi" requires explicit package name at setup.pl line 51.
    Global symbol "$cgi" requires explicit package name at setup.pl line 53.
    Global symbol "$cgi" requires explicit package name at setup.pl line 57.
    Global symbol "$cgi" requires explicit package name at setup.pl line 60.
    Global symbol "$cgi" requires explicit package name at setup.pl line 109.
    Execution of setup.pl aborted due to compilation errors.

     
  • Tim De Pauw
    Tim De Pauw
    2007-03-28

    Logged In: YES
    user_id=642776
    Originator: NO

    Odd. Did you change anything to setup.pl? Perhaps try extracting the original version from the archive again. If that doesn't help, feel free to upload it here and I'll take a look.

     
  • Logged In: NO

    OK... I did that then I thought I'd sorted it, as I got to the setup and it all worked fine.

    Then, when I tried to load index.cgi in the cgi-bin, it said:

    An Error Occurred

    File "/../../chirpy.ini" does not exist at ../../src/modules/Chirpy/Util/IniFile.pm line 88

    :(

    Thank you so much for all of your help. :-D

     
  • Tim De Pauw
    Tim De Pauw
    2007-03-28

    Logged In: YES
    user_id=642776
    Originator: NO

    No problem. :-)

    This one's another path problem. Again, the path starts with /, so it's starting from the root directory. Since ".." is the parent directory, you're trying to get up to the parent directory of the parent directory of the root directory. No matter how many times you do that, it's going to be the root directory. :-) Instead, you want a relative path, so again, remove the leading slash.

    Note that the path to chirpy.ini should be relative to the path where index.cgi is, so if index.cgi is in foo/public_html, and chirpy.ini is in foo, you want '../chirpy.ini'.

     
  • Logged In: NO

    Oh. I do love you so. lol.

    It works perfectly. :) And I've learnt all about relative paths which I didn't know before. And lots of things. I'm an A Level computing student and I've never done anything like this before. I'm just amazed that it actually works!! :-D

    I just need to apply a skin somehow now... :)

     
  • Logged In: NO

    Amazing what a difference a single forward slash can have between having graphics and not having graphics lol.

    Thank you so much. I absolutely love it. As far as I'm concerned this "issue" is closed, and I'd like to commend ceetee for replying and helping so quickly.

    :-)

     
  • Logged In: NO

    Hi there, I didn't want to start a new tracker but I have another tiny issue.

    When you vote or when you click on the report button it says "proccessing" then "error". However when you refresh the page the vote has been added or the report has gone through.

    What is the POSIX module used for? I believe that this is absent and have contacted my hosting provider to see if it can be installed. I'm presuming this is the problem.

    I'm actually using a free host. As I say, everything works perfectly except this. I also don't have CGI::CARP, so I'm guessing it shouldn't be trying to report the errors either and that's a fault on my behalf.

    Ta.

     
  • Tim De Pauw
    Tim De Pauw
    2007-03-31

    Logged In: YES
    user_id=642776
    Originator: NO

    I don't think you're missing any modules, as POSIX comes with Perl by default, and CGI::Carp provides the error messages you already got.

    If you're having trouble with live rating, please tell me your browser name and version, and copy any error messages from its error console if available. Live rating uses Ajax, which is relatively new, so it won't work on old browsers. However, as far as I know, it should gracefully degrade to non-live rating.

    Does it only happen on your computer, or with all visitors? If the problem persists, I could modify live_rating.js a bit, so it becomes verbose about its errors.

     
  • Logged In: NO

    It's doing it for everyone so it seems. The votes count but it has errors. It was happening on the college network and at home too.

    http://preview.tinyurl.com/3dtvcc << if you'd like to take a look at my site so that you can check out the errors.

    duckmagicuk2ATgooglemail.com :) Thanks again for your help.

     
  • Logged In: NO

    People were complaining about the errors, but it seems that it still counts the vote.

    I there any way just to disable the "error" bit?

     
  • Tim De Pauw
    Tim De Pauw
    2007-03-31

    Logged In: YES
    user_id=642776
    Originator: NO

    I just took a look at the stuff your server sends back upon live rating. It appends a whole lot of HTML to Chirpy!'s output (copied from telnet, so formatting is broken):

    <div id="ad_table1" style="font-family: Tahoma, Verdana, Arial, sans-serif; font
    -size: .7em; margin: 1.5em 2em;" >
    <span style="float:left;" >
    <a
    href="http://www.trap17.com">Trap17</a> :
    <a href="http://www.astahost.co
    m">AstaHost</a> :
    <a href="http://www.imagefilez.com/">ImageFilez</a> :

    <a href="http://www.qupis.com">Free Web Hosting</a> by
    <a href="htt
    p://www.qupis.com">Qupis</a> - a member of -
    <a href="http://www.xisto.co
    m">xisto</a></span>
    [...]

    What comes before that is an XML document, which is then parsed by Chirpy!'s JavaScript code to determine the result of the vote. Now, because of the garbled HTML after the XML, the XML document becomes invalid, and the script can't parse it, and is therefore unable to read its contents. Perhaps you could ask your host to check for a text/html content type before automatically inserting advertisements, or find another host. I wouldn't recommend hacking out error checking, because the code also deals with timeouts, duplicate votes, etc.

     
  • Logged In: NO

    Oh, OK... maybe time to move to a paid host then... :(

     
  • Tim De Pauw
    Tim De Pauw
    2007-03-31

    Logged In: YES
    user_id=642776
    Originator: NO

    Not necessarily. You can get free adless hosting from http://hostprogressive.com/ for example. I used to run the Chirpy! demo site there, so I'm pretty sure it should work. The only downside is that the servers for free accounts aren't that reliable.

     
  • Tim De Pauw
    Tim De Pauw
    2007-03-31

    • status: open --> pending
     
    • status: pending --> open
     
  • Logged In: NO

    It works in IE7 but in FireFox I get

    XML Parsing Error: mismatched tag. Expected: </p>.
    Location: http://www.ducky.truehost.co.uk/cgi-bin/index.cgi
    Line Number 99, Column 5: </div>
    ------------------^

    As does my friend using FireFox.
    (The arrow actually points to the "d" in div.

     
  • Logged In: NO

    Do you know what this XML problem is caused by?