Re: refdb-init.sh update
Rich Shepard <[email protected]>
| Newsgroups | gmane.text.refdb.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 13 Jun 2006, Markus Hoenicka wrote:
> I've fixed the bugs that Rich discovered and hope the script will now offer
> a smoother experience. I've appended the input file for your convenience.
> Copy it into the /scripts subdir of your pre7 sources and run make and make
> install before trying again.
Markus,
So close ... but not fully there yet.
Running /usr/local/bin/refdb-init.sh as a user (me), it ran well until the
last step (or two). I was asked several times for the postgres superuser's
password (which I dutifully entered each time), then saw this:
===
I've finished collecting all required information, and the checks look ok.
If you don't want to touch your existing installation, answer with 'n'.
Shall I proceed and set up RefDB [y/n]?
y
When asked for a password, provide the password used to log in as
the database superuser.
y - postgres!!!
Password:
When asked for a password, provide the database superuser password
Password:
DROP DATABASE
Could not remove existing main database
Password for user postgres:
DROP ROLE
Could not remove existing database user group
Password:
CREATE DATABASE
Password for user postgres:
NOTICE: CREATE TABLE will create implicit sequence "citstyle_id_seq" for
serial column "citstyle.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"citstyle_pkey" for table "citstyle"
CREATE TABLE
NOTICE: CREATE TABLE will create implicit sequence "positions_id_seq" for
serial column "positions.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"positions_pkey" for table "positions"
CREATE TABLE
NOTICE: CREATE TABLE will create implicit sequence "refstyle_id_seq" for
serial column "refstyle.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"refstyle_pkey" for table "refstyle"
CREATE TABLE
NOTICE: CREATE TABLE will create implicit sequence "separators_id_seq" for
serial column "separators.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"separators_pkey" for table "separators"
CREATE TABLE
CREATE TABLE
INSERT 0 1
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index
"t_journal_words_pkey" for table "t_journal_words"
CREATE TABLE
INSERT 0 1
INSERT 0 1
... <many lines of the above deleted in this message>
INSERT 0 1
CREATE ROLE
GRANT
Could not create main database
sed: invalid option -- E
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...
-n, --quiet, --silent
suppress automatic printing of pattern space
-e script, --expression=script
add the script to the commands to be executed
-f script-file, --file=script-file
add the contents of script-file to the commands to be
executed
-i[suffix], --in-place[=suffix]
edit files in place (makes backup if extension supplied)
-l N, --line-length=N
specify the desired line-wrap length for the ' command
-r, --regexp-extended
use extended regular expressions in the script.
-s, --separate
consider files as separate rather than as a single
continuous
long stream.
-u, --unbuffered
load minimal amounts of data from the input files and flush
the output buffers more often
--help display this help and exit
-V, --version output version information and exit
If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret. All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.
E-mail bug reports to: [email protected] .
Be sure to include the word `sed'' somewhere in the `Subject:'' field.
cp: cannot create regular file /usr/local/etc/refdb/refdbdrc.': Permission
denied
Could not backup existing refdbd configuration file
refdbd-init.sh failed.
refdb-init.sh is finished.
Running as a mere user, I have no write permissions to /usr/local/etc/.
That's why refdbdrc could not be created. Root has such write permissions,
but I don't want to create the working bibliographic database under root's
account.
Many thanks, Markus,
Rich
--
Richard B. Shepard, Ph.D. | The Environmental Permitting
Applied Ecosystem Services, Inc.(TM) | Accelerator
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863