Re: how to install 3.1 from source on MacOS?

2015-09-04 Thread Alexis
Hello Richard,
> It *looks* like I'm already on the 'next' branch:
> $ git branch
> * next
> 
> Is that correct?

Yes, it is.

You may find https://try.github.io helpful.
Branches are discussed from challenge 18 onwards:
https://try.github.io/levels/1/challenges/18


Cheers,
Alexis

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to install 3.1 from source on MacOS?

2015-09-03 Thread Richard Cobbe
On Wed, Sep 02, 2015 at 05:48:27PM +0200, Alexis wrote:
> Hello Richard,
> > 1) What are the various branches in the 3.x release that I might reasonably
> > want to use, and what are the tradeoffs between them?
>
> master: The current stable branch, which is currently a bit stale
> doesn't build with boost >=1.59
> It moves slowly
>
> next: The branch where all development happens, may break occasionally,
>   but has been rather stable the last months
>
> release/*: The branches used for releases, currently abandoned
>
> I recommend you use next, it would help the community if you find and
> report bugs.
>
> > 2) Once I've decided which branch to use, what is the git command to check
> > out that branch?
>
> % git checkout -b next origin/next # where next is the branch you decide upon

Excellent; just what I needed.  Thanks!

I ran
$ git clone https://github.com/ledger/ledger.git
which succeeded, and then
$ git checkout -b next origin/next
which didn't:
fatal: A branch named 'next' already exists.

It *looks* like I'm already on the 'next' branch:
$ git branch
* next

Is that correct?

Thanks for your patience with these basic questions,

Richard

>
>
> Cheers,
> Alexis
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to install 3.1 from source on MacOS?

2015-09-02 Thread Alexis
Hello Richard,
> 1) What are the various branches in the 3.x release that I might reasonably
> want to use, and what are the tradeoffs between them?

master: The current stable branch, which is currently a bit stale
doesn't build with boost >=1.59
It moves slowly

next: The branch where all development happens, may break occasionally,
  but has been rather stable the last months

release/*: The branches used for releases, currently abandoned

I recommend you use next, it would help the community if you find and
report bugs.

> 2) Once I've decided which branch to use, what is the git command to check
> out that branch?

% git checkout -b next origin/next # where next is the branch you decide upon


Cheers,
Alexis

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to install 3.1 from source on MacOS?

2015-09-02 Thread Richard Cobbe
On Tue, Sep 01, 2015 at 05:46:35PM +0200, Alexis wrote:
> Hello Richard,
> acprep is a convenience build script, which basically runs:
>
> % cmake . && make
>
> So that command should compile ledger for you using the dependencies
> from MacPorts.
>
> I'm working on improving and documenting the ledger CMake files,
> so that using cmake directly and knowing about the various
> configuration options will become easier.
>
> Here's a list of options ledger's cmake process understands:
> % grep option CMakeLists.txt
> option(USE_PYTHON "Build support for the Python scripting bridge" OFF)
> option(USE_DOXYGEN "Build reference documentation using Doxygen" OFF)
> option(DISABLE_ASSERTS "Build without any internal consistency checks" OFF)
> option(BUILD_DEBUG "Build support for runtime debugging" OFF)
> option(BUILD_LIBRARY "Build and install Ledger as a library" ON)
> option(BUILD_DOCS "Build and install documentation" OFF)
> option(BUILD_WEB_DOCS "Build version of documentation suitable for viewing 
> online" OFF)
> option(BUILD_EMACSLISP "Build and install ledger-mode for Emacs" OFF)
>
> So if you would like to use the ledger's Python module you would need to run:
> % cmake -DUSE_PYTHON=ON . && make # I recommend using make -j
>
> Please report back if certain dependencies such as boost, gmp or mpfr
> aren't found.

Thanks for your reply!

I have the dependencies installed (by hand, btw, because I don't really
want to have to install the +universal variants of all of the MacPorts
packages).

My questions at this point are rather more basic -- and I should have made
that clearer in my original email; sorry about that.

1) What are the various branches in the 3.x release that I might reasonably
want to use, and what are the tradeoffs between them?

2) Once I've decided which branch to use, what is the git command to check
out that branch?

That is, I'm looking for something like, "well, you could use either branch
X or branch Y: branch X gets you access to the latest features, but it's
occasionally broken; Y moves more slowly but is much more likely to build
and run."

And the git question isn't about version control in general -- I've been
using various version control tools for years; I'm just not familiar with
git.

Thanks much,

Richard

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to install 3.1 from source on MacOS?

2015-09-01 Thread Alexis
Hello Richard,
acprep is a convenience build script, which basically runs:

% cmake . && make

So that command should compile ledger for you using the dependencies
from MacPorts.

I'm working on improving and documenting the ledger CMake files,
so that using cmake directly and knowing about the various
configuration options will become easier.

Here's a list of options ledger's cmake process understands:
% grep option CMakeLists.txt
option(USE_PYTHON "Build support for the Python scripting bridge" OFF)
option(USE_DOXYGEN "Build reference documentation using Doxygen" OFF)
option(DISABLE_ASSERTS "Build without any internal consistency checks" OFF)
option(BUILD_DEBUG "Build support for runtime debugging" OFF)
option(BUILD_LIBRARY "Build and install Ledger as a library" ON)
option(BUILD_DOCS "Build and install documentation" OFF)
option(BUILD_WEB_DOCS "Build version of documentation suitable for viewing 
online" OFF)
option(BUILD_EMACSLISP "Build and install ledger-mode for Emacs" OFF)

So if you would like to use the ledger's Python module you would need to run:
% cmake -DUSE_PYTHON=ON . && make # I recommend using make -j

Please report back if certain dependencies such as boost, gmp or mpfr
aren't found.


Happy compiling ledger,
Alexis

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: how to install 3.1 from source on MacOS?

2015-08-31 Thread Alan Schmitt
On 2015-08-31 00:22, Richard Cobbe  writes:

> Forgive some extremely basic questions, but what do I need to do to build
> a reasonably stable version of Ledger 3.1 from source on MacOS 10.10?

I install it using homebrew, and it works flawlessly.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Last week athmospheric CO₂ average (Updated August 28, 2015, Mauna Loa Obs.):
378.79 ppm

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


Re: how to install 3.1 from source on MacOS?

2015-08-31 Thread Richard Cobbe
On Mon, Aug 31, 2015 at 09:28:57AM +0200, Alan Schmitt wrote:
> On 2015-08-31 00:22, Richard Cobbe  writes:
>
> > Forgive some extremely basic questions, but what do I need to do to build
> > a reasonably stable version of Ledger 3.1 from source on MacOS 10.10?
>
> I install it using homebrew, and it works flawlessly.

Thanks for the suggestion, but I'm really not interested in switching from
MacPorts to Homebrew just at the moment, nor in attempting to get both of
them to play nicely together on the same system.

I really would like to be able to just check out the source from GitHub and
build it.

I perhaps should have mentioned that I had this working before, but due to
a hard drive replacement and an incomplete TimeMachine backup, I lost my
previous copy of the repository, so I'm having to start over from scratch.
(At least I had the binaries, so I can limp by for a bit.)

Thanks,

Ricahrd

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to install 3.1 from source on MacOS?

2015-08-30 Thread Richard Cobbe
Forgive some extremely basic questions, but what do I need to do to build
a reasonably stable version of Ledger 3.1 from source on MacOS 10.10?

I use MacPorts, but unfortunately the current ledger package there doesn't
build, due to an apparent incompability with Boost 1.59 (see Tim Smith's
email to this list on Aug 18).  Unfortunately, I don't seem to be able to
reach MacPort's bugDB website right now, so I can't check to see if there's
an open ticket on this.

I've checked out a copy of the repository with
git clone https://github.com/ledger/ledger.git
and that appears to have succeeded.

Unfortunately, I'm not sure what to do next -- I'm a little confused by the
instructions at https://github.com/ledger/ledger, and I'm not sure
exactly which branch I want to be using.  Not ALPHA, certainly, and
presumably not the default branch.  I'm guessing RELEASE?

Unfortunately, following the directions on the web page for checking out
the RELEASE branch doesn't seem to work.  Running git checkout -b stable
v3.1 appears to succeed:

[ridcully:~/installers/ledger]$ git checkout -b stable v3.1
Switched to a new branch 'stable'

But then I can't build:

[ridcully:~/installers/ledger]$ ./acprep update
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details

git pull remote branch

If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/branch stable

acprep: ERROR: Execution failed: git pull

It's quite possible that I'm overlooking something extremely basic,
especially since I've essentially never used git before; I'm used to Hg and
SVN.

Any and all suggestions welcome.

Thanks,

Richard

-- 

--- 
You received this message because you are subscribed to the Google Groups 
Ledger group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.