Wiki Roadmap Timeline Tickets New Ticket Source Search Help / Guide About Trac Login

Ticket #232 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Ldc can't find ldc.conf

Reported by: naryl Assigned to: ChristianK
Priority: major Milestone:
Component: unspecified Version: hg tip
Keywords: Cc:

Description

Ldc outputs the followig error mesage when run: "Error failed to locate the configuration file: ldc.conf". Unless ldc.conf is in current directory. I put ldc.conf in /etc/ldc.conf and previous builds successfully located it.

Change History

03/13/09 14:25:55 changed by fvbommel

Hmm, looks like it tries the following dirs, in order:

  • ./ldc.conf
  • $HOME/ldc.conf
  • $INSTALL_PREFIX/ldc.conf
  • next to the 'ldc' binary.

The problem you're having is probably due to two things:

  • INSTALL_PREFIX defaults to '/usr/local', not the root directory.
  • It doesn't append 'etc/' like it probably should on unix-like systems...

So the fix would need two steps:

  • 'ccmake .' and be sure to set CMAKE_INSTALL_PREFIX to empty.
  • update to [1114] and see if that fixes it (please close this ticket if it does)

03/14/09 11:22:44 changed by lindquist

Maybe we should check /etc as well as $prefix/etc on non windows systems ?

03/15/09 04:10:02 changed by naryl

  • status changed from new to closed.
  • resolution set to fixed.

Yes. [1114] and running 'cmake -D CMAKE_INSTALL_PREFIX="/" ./' fixes it. Thanks.

Copyright © 2008, LDC Development Team.