libxml in production

V

Vince W.

I'm having an issue loading libxml in production. On the same machine:

Loading production environment (Rails 2.3.3)=> false

Loading development environment (Rails 2.3.3)=> []

The difference between my development.rb and production.rb that seems to
make the difference is this:

#production
config.cache_classes = true

#development
config.cache_classes = false

Anyone know why this might be the case?
 
K

Kaspar Schiess

I'm having an issue loading libxml in production. On the same machine:

Hi Vince,

If the return value of require is the issue then you don't have one ;).
'require' has been known to return many things. Is the libxml you're
requiring not working?

kaspar
 
V

Vince W.

Kaspar said:
If the return value of require is the issue then you don't have one ;).
'require' has been known to return many things. Is the libxml you're
requiring not working?

No, unfortunately not.. I have a rake task that uses the vigetlabs-garb
gem which seems to be failing production but not in development.

The cache_classes difference seems to be the cause though I can't be
certain it's related to libxml. My only guess to this effect is that I
can't require garb in production either and garb requires libxml.
 
E

Eric Hodel

I'm having an issue loading libxml in production. On the same
machine:

Loading production environment (Rails 2.3.3)=> false

Loading development environment (Rails 2.3.3)=> []

Rails broke require*. It didn't load libxml in either case.

* Kernel#require returns either true or false, false when the feature
was already loaded. After loading rails, Kernel#require returns an
Array (a true value) no matter what.
 
R

Rob Sanheim

[Note: parts of this message were removed to make it a legal post.]

On Aug 10, 2009, at 07:51 , Rob Sanheim wrote:

Rails broke require*. It didn't load libxml in either case.

would it matter?

I've opened bugs on semantics that rails broke and core hasn't even batted
an eye at it.

The core team has gotten better with bugs like this. Maybe they would
surprise you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top