New Hairnotdefined ([personal profile] notdefined) wrote in [site community profile] dw_dev,
@ 2009-07-30 08:24 pm UTC
  • Previous Entry
  • Add to Memories
  • Tell someone about this!
  • Next Entry
Entry tags:install issues

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??


(17 comments) - (Post a new comment)
(Flat) (Top-level comments only)

Taking refuge from falling debris under a computer desk.

[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.

(Reply to this)  (Thread


Cat under a blanket. Text: "Cats are just little people with Fur and Fangs"

[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?

(Reply to this)  (Thread from start)  (Parent)  (Thread


New Hair

[personal profile] notdefined
2009-07-31 02:38 pm UTC (link)
I will check that this evening when I get home.

(Reply to this)  (Thread from start)  (Parent


New Hair

[personal profile] notdefined
2009-07-31 02:39 pm UTC (link)
I did look for Hooks.pm and could not find it under any subdirectory.

(Reply to this)  (Thread from start)  (Parent


Computer Science is my girlfriend

[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?

(Reply to this)  (Thread


New Hair

[personal profile] notdefined
2009-07-31 02:40 pm UTC (link)
I'm setting it up as a production site. Flipped off the bit that indicated a development site.

(Reply to this)  (Thread from start)  (Parent)  (Thread


Computer Science is my girlfriend

[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.

(Reply to this)  (Thread from start)  (Parent)  (Thread


New Hair

[personal profile] notdefined
2009-07-31 03:44 pm UTC (link)
Thanks, I will try this tonight. I am curious why it is happening though. If it is working elsewhere, I wonder what is different about my setup. I generally use RedHat based distros (Fedora, etc.) I wiped the box and installed Ubuntu then followed the 'cookbook' to the letter. Either I overlooked something or something was dropped in the download.

(Reply to this)  (Thread from start)  (Parent)  (Thread


Computer Science is my girlfriend

[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.

(Reply to this)  (Thread from start)  (Parent)  (Thread


New Hair

[personal profile] notdefined
2009-07-31 03:56 pm UTC (link)
Ah ha. So I can now cancel the reservation I made at the local mental facility. :) Thanks.

BTW, is there any advantage/disadvantage or restriction that would make it undesirable to run as a development site? I'm sure at some point, I will not be able to keep my coding fingers safely in my pockets and will be wanting to tweak things.

(Reply to this)  (Thread from start)  (Parent)  (Thread


Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome

[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 :)

(Reply to this)  (Thread from start)  (Parent)  (Thread


Fox stealing an egg.

[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.

(Reply to this)  (Thread from start)  (Parent


New Hair

[personal profile] notdefined
2009-08-05 04:30 am UTC (link)
I had to download this patch again (i did not get things backed up before I corrupted the disk.) When I tried to get to bugs.dwscoalition.org I got a Forbidden error indicating
"You don't have permission to access /attachment.cgi on this server."

(Reply to this)  (Thread from start)  (Parent)  (Thread


Computer Science is my girlfriend

[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!

(Reply to this)  (Thread from start)  (Parent)  (Thread


New Hair

[personal profile] notdefined
2009-08-05 05:03 am UTC (link)
wouldn't ya know. Thanks.

(Reply to this)  (Thread from start)  (Parent


LJ is El Dumb

[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?

(Reply to this)  (Thread from start)  (Parent)  (Thread


(Deleted post)
Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome

[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.)

(Reply to this)  (Thread from start)  (Parent



(17 comments) - (Post a new comment)
(Flat) (Top-level comments only)