notdefined: (Default)
Thomas M Langley ([personal profile] notdefined) wrote in [site community profile] dw_dev2009-07-30 08:24 pm
Entry tags:

Problem installing Dreamwidth.....

I'm following the dialogue to install dreamwidth under Ubuntu 9.04. All is going well until I execute the bin/checkconfig.pl. I get this error:

dw@web01:~$ bin/checkconfig.pl --no=ljconfig
[Checking for Perl Modules....]
[Checking LJ Environment...]

Problem:

* Failed to load ljlib.pl: Can't locate DW/Hooks.pm in @INC (@INC contains: /home/dw/cgi-bin /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/dw/cgi-bin/ljlib-local.pl line 6.

BEGIN failed--compilation aborted at /home/dw/cgi-bin/ljlib-local.pl line 6. Compilation failed in require at /home/dw/cgi-bin/ljlib.pl line 119. Compilation failed in require at bin/checkconfig.pl line 233.

Any clue what I'm doing wrong??
kareila: Taking refuge from falling debris under a computer desk. (computercrash)

[personal profile] kareila 2009-07-31 06:36 am (UTC)(link)
I have no idea. It looks like neither DW/Hooks.pm nor LJ/Hooks.pm exists in the filesystem; instead, the relevant packages should be created dynamically at load time... somehow.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-07-31 06:42 am (UTC)(link)
Hmm, I was wondering if this had anything to do with the recent classloading issues we had, but IIRC those were fixed. Also, if that were the case, running checkconfig.pl on my system would have the same effect.

I wonder if it's possible they're stuck at an earlier revision of the repo, though?

To the OP, what does

cd $LJHOME/cvs/dw-free
hg parents

show you?
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-07-31 07:30 am (UTC)(link)
Are you setting up a development environment or for a production site based on our code?
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-07-31 03:16 pm (UTC)(link)
You should be able to apply this patch locally and it should work: http://bugs.dwscoalition.org/attachment.cgi?id=1736

Be aware that updating your code will probably overwrite what that patch did.
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-07-31 03:46 pm (UTC)(link)
You are running without dw-nonfree (which you should be, given you are running a production site), and there's currently an issue that prevents dw-free from working alone, that patch will correct it.
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2009-07-31 06:56 pm (UTC)(link)
There aren't really any restrictions -- we've tried to make it totally possible to run a complete production site on the code, up to and including a lot of functions/features that LJ doesn't put in their equivalent of 'dw-free' -- but one caveat you should be aware of is that we're, uh, still very much in beta!

Obviously, the code works well enough to run a production system on -- we're doing it, after all -- but we're doing very rapid development and iteration as we identify glitches and flaws, and our documentation is lagging behind our actual code (a perpetual problem, she says, wearily, and in fact as you notice things that need documenting better, we'd love it if you note them down on the wiki). During beta, we're also working without a lot of the QA/staged deployment systems we want to have in place by full site 'launch', so there's a pretty good risk you're going to get something mildly buggy if you update from tip. (she says, having been the person who broke the site four times in the past month...)

None of this is an argument against running a production site on DW code, and indeed we'd love to see you doing it -- the more people running the code, with as many use cases as possible, the more bugs we can shake out and fix and the more suggestions for improvements we can find -- but it's a good idea to know what you're getting into! It's probably a good idea to create a local repository of the code and work from that, rather than just updating directly from tip, so you can roll back to a "known good" version in case something breaks. It's also a good idea to be watching [site community profile] changelog -- it can be high-traffic (which excites me, let me tell you) but it gives a good sense of what we're up to, development-wise.

And if your coding fingers creep out of your pockets, we'd love to see you contribute some code :)

Welcome to the DW community! I'm really excited to see you here and using our code to build something -- let us all know when you get the site running so we can drop by and say hi :)
foxfirefey: Fox stealing an egg. (mischief)

[personal profile] foxfirefey 2009-08-01 07:55 pm (UTC)(link)
If [site community profile] changelog is too spammy, there is always [community profile] changelog_digest! That's what I watch instead of the main comm itself.
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2009-08-05 04:51 am (UTC)(link)
You managed to hit Bugzilla in the short period it was being upgraded, Try now!
whobutdrew: (Default)

[personal profile] whobutdrew 2009-09-03 12:19 am (UTC)(link)
I'm having this problem too, but I'm having trouble applying this patch.

To make sure I'm going about it right, how should I be doing it?
(deleted comment)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2010-09-12 01:44 am (UTC)(link)
Hi there!

First off, the problem described in this entry shouldn't happen anymore -- we fixed it a while back. If you're still having problems, you should make a new toplevel post to [site community profile] dw_dev -- since this is an old thread, likely the only people who will see it are the people like me who have subscribed to all comments in the community, and I'm not sure how many of them there are!

Secondly, we've got some documentation on the wiki to help you get started (both with Mercurial and with the DW development process in general):

http://wiki.dwscoalition.org/notes/Category:Development
http://wiki.dwscoalition.org/notes/Dev_Getting_Started
http://wiki.dwscoalition.org/notes/Mercurial_Queues_Walkthrough
http://wiki.dwscoalition.org/notes/Dreamwidth_Development_Handbook

A new top-level post to the community with the specifics of what problems you're running into will get a much more useful answer! (I Am Not The Geek.)