OS/2, eCS & ArcaOS - Technical > Utilities

problems with sh.exe

<< < (3/3)

Silvan Scherrer:

--- Quote from: Greg Pringle on June 16, 2017, 03:55:58 pm ---I unset SHELL and it makes no difference.

Paul sent me the source for 9.1.3  which I spent some time with. It looks like path.c might be destroying the path.
Not able to correctly retain the directory slashes. I don't have the time for full debugging.
Clearly a change was made to the paths in the current ArcaOS.

--- End quote ---

There are more SHELL settings in config.sys. Try to unset all or try to set them all to cmd.exe for a test.
Im more than sure one of those is guilty.

regards
Silvan

Greg Pringle:
OK
The trick is to unset two variables.
This also needs to be done to run PostgreSQL
Here is what I did:
/* setup of Eforward Server with Postgres 9.1.7 */
/* uses postgresql-9.1.7-os2-201201212.zip from Paul Smedley */
/* uses jdbc driver postgresql-9.3-1103.jdbc3.jar */

K:
cd \
mkdir pgdb917
copy postgresql-9.1.7-os2-201201212.zip K:\pgdb917
cd \pgdb917
unzip postgresql-9.1.7-os2-201201212.zip

mkdir \pgdb917\pgsql\java
copy postgresql-9.3-1103.jdbc3.jar K:\pgdb917\pgsql\java\postgres.jar

SET SHELL=
SET EMXSHELL=

cd \pgdb917\pgsql\bin

initdb -D K:\pgdb917\data -E LATIN1

output---------------

Success. You can now start the database server using:

    "postgres" -D "k:/pgdb917/data"
or
    "pg_ctl" -D "K:/pgdb917/data" -l logfile start

======================================================
--------------------

create file K:\pgdb917\pgsql\bin\startdb.cmd with these lines:
SET SHELL=
SET EMXSHELL=

pg_ctl -D K:\pgdb917\data start

create file K:\pgdb917\pgsql\bin\stopdb.cmd with this line:
pg_ctl -D K:\pgdb917\data stop -m smart

run startdb.cmd

run stopdb.cmd

# This shows the database is created and can be started and stopped.

run: startdb.cmd

run: psql template1 postgres
from prompt:
\h create user              # this lists the usage
create user cvd with password 'secret' CREATEDB CREATEUSER CREATEROLE;
\du                         # show the users
\q                          # exit command interface
psql template1 cvd          # restart the command interface
create database eforward;
\c eforward
create schema eforward;
\q

There is some configuration needed but it is running.

this can be done to conserve memory:
highmem -c postgres.dll
cd ..\lib
highmem -c *.dll

Navigation

[0] Message Index

[*] Previous page

Go to full version