My commands for building ledger (3.0) from git used to be:

  $ git clone git://github.com/jwiegley/ledger.git
  $ cd ledger
  $ ./acprep pull
  $ ./acprep config -- --prefix=/opt/ledger
  $ make
  $ make install

i. e. I passed the --prefix option to configure, because I wanted
the resulting ledger executable and all its accompanying support
files to live in /opt/ledger.

Now with a recent checkout that doesn't work anymore:

  $ git clone git://github.com/jwiegley/ledger.git
  $ cd ledger
  $ ./acprep pull
  $ ./acprep config -- --prefix=/opt/ledger
  
this last config step results in an
  
  CMake Error: The source directory 
"/home/reuleaux/tmp2/ledger/--prefix=/opt/ledger" does not exist.

OK, skimming ./acprep I see: ./acprep itself should accept a --prefix
option, so I try just 

  $ ./acprep config --prefix=/opt/ledger

(see the difference: without the "--" in between)

building, i. e. calling 

  $ make 

in the next step, doesn't pose any problems, however when I try to
install, this --prefix option doesn't seem to have any effect

  $ make install
  ...
  CMake Error at src/cmake_install.cmake:36 (FILE):
    file INSTALL cannot copy file "/home/reuleaux/tmp2/ledger/src/libledger.a"
    to "/usr/local/lib/libledger.a".

well luckily I get this permission problem
(so my /usr/local/lib is not messed up),
but I the really I want my ledger files to be installed in /opt/ledger
rather than /usr/local/lib.

I guess this is due to the latest move to cmake, and I am sorry
if this has been asked before: I didn't follow the mail on this list
in detail recently.

however, any help is appreciated.

I should mention, that I am on Debian wheezy
(cmake version 2.8.8 should be fine)

-Andreas

Reply via email to