[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Installing lsmb 1.3.20 on OS X 10.6.8



On Sat, Jul 28, 2012 at 5:43 PM, Paul Bente <..hidden..> wrote:
> I have installed ledgersmb-1.3.20 on OS X 10.6.8 (Snow Leopard) with Perl 5.8.9 and a clean install of PostgreSQL 9.1.4. Using PgAdmin3 I see a single database named 'postgres' and I confirmed the user 'postgres'. I'm having difficulty setting up the first company database with either of the 2 options.
>
> 1. When I connect to http://localhost/ledgersmb/setup.pl with my browser I see the Database Management Console with Super-user login:postgres, Password:___  , and Database:___
> but I am not clear whether I should attempt to connect to the postgres database to get started. This is complicated by the fact that the postgres install created a hidden user postgres without a password and I will need to figure out how set one.

This should be the postgres database user.  How do you connect on
pgAdmin3?  There are a few ways this could be done.

The database is the name of the database you want to create, backup,
or upgrade.  If there is a reason we can't use the postgres user, we
can create another superuser.

>
> 2. Executing '$ ./tools/prepare-company-database.sh --company testinc' as root gives me an error
> getopt: illegal option -- l
> apparently because OS X has the BSD 'getopt' rather than the GNU 'getopt', according to
> http://stackoverflow.com/questions/402377/using-getopts-in-bash-shell-script-to-get-long-and-short-command-line-options (see answer # 19). This is beyond my knowledge of bash but can I comment out the if-then part which uses getopt if I just use the single '--company testinc' option as written?

I will file a bug report on this one.  Thanks!

Best Wishes,
Chris Travers