#1 17.03.07 17:01
postgreSQL
ubuntu 6.10, postgresql 7.4.16.
root@Router:/postgresql-7.4.16# ./configure --prefix=/opt/postgresql --with-perl --with-maxbackends=1024
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to turn off strict aliasing in gcc... -fno-strict-aliasing
configure: using CFLAGS=-O2 -fno-strict-aliasing
checking whether the C compiler still works... yes
checking how to run the C preprocessor... gcc -E
checking allow thread-safe client libraries... no
checking whether to build with Tcl... no
checking whether to build with Tk... no
checking whether to build Perl modules... yes
checking whether to build Python modules... no
checking whether to build Java/JDBC tools... no
checking whether to build with Kerberos 4 support... no
checking whether to build with Kerberos 5 support... no
checking whether to build with PAM support... no
checking whether to build with Rendezvous support... no
configure: using CPPFLAGS=-D_GNU_SOURCE
configure: using LDFLAGS=
checking for gawk... no
checking for mawk... mawk
checking for flex... no
configure: WARNING:
*** Without Flex you will not be able to build PostgreSQL from CVS or
*** change any of the scanner definition files. You can obtain Flex from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Flex
*** output is pre-generated.)
checking whether ln -s works... yes
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ranlib... ranlib
checking for lorder... lorder
checking for tar... /bin/tar
checking for strip... strip
checking whether it is possible to strip libraries... yes
checking for bison... no
configure: WARNING:
*** Without Bison you will not be able to build PostgreSQL from CVS or
*** change any of the parser definition files. You can obtain Bison from
*** a GNU mirror site. (If you are using the official distribution of
*** PostgreSQL then you do not need to worry about this because the Bison
*** output is pre-generated.) To use a different yacc program (possible,
*** but not recommended), set the environment variable YACC before running
*** 'configure'.
checking for perl... /usr/bin/perl
checking for Perl archlibexp... /usr/lib/perl/5.8
checking for Perl privlibexp... /usr/share/perl/5.8
checking for Perl useshrplib... true
checking for flags to link embedded Perl... Note (probably harmless): No library found for -lperl
-L/usr/local/lib /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.8/CORE -ldl -lm -lpthread -lc -lcrypt
checking for main in -lbsd... no
checking for setproctitle in -lutil... no
checking for main in -lm... yes
checking for main in -ldl... yes
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for main in -lipc... no
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for library containing getopt_long... none required
checking for main in -lunix... no
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for shmget in -lcygipc... no
checking for readline... no
configure: error: readline library not found
If you have readline already installed, see config.log for details on the
failure. It is possible the compiler isn't looking in the proper directory.
Use --without-readline to disable readline support.
только ненужно говорить "а почему бы неустановить из бинарников"
мне нужно сделать именно так, в чем здесь проблема?
Offline
#4 17.03.07 21:55
Re: postgreSQL
Автор, ты перед тем как постить сообщения почитай что тебе в консоль выпадает. Большинство вопросов отпадет сразу
ko_antoha написал(а):
checking for readline... no
configure: error: readline library not found
Что тут не понятного то?
Offline
#6 19.03.07 11:07
Re: postgreSQL
так и хочется написать rtfm но так сам ламо то не люблю сей оборот )))
http://www.google.ru/search?hl=ru&q=readline&btnG=%D0%9F%D0%BE%D0%B8%D1%81%D0%BA+%D0%B2+Google&lr=
Offline
#7 19.03.07 16:46
Re: postgreSQL
http://npj.ru/cake/install-postgres
system : Ubuntu 6.10
postgre 7.4.16
делаю всек по списку
createdb -O cake -E WIN cake
bash: createuser: command not found
createlang plpgsql cake
bash: createlang: command not found
wget http://cake.opennet.ru/release/v1.0.1rc … p/cake.sql
psql -Ucake -W -d cake -f cake.sql
bash: psql: command not found
psql -Ucake cake -c "select * from cake.users;"
bash: psql: command not found
может для убунты какието другие команды?
Исправлено ko_antoha (19.03.07 16:51)
Offline
#10 19.03.07 17:05
#11 19.03.07 17:13
#12 19.03.07 17:23
#13 19.03.07 17:43
#14 19.03.07 17:59
#15 19.03.07 18:16
#16 19.03.07 18:59
#17 19.03.07 19:10
#18 19.03.07 19:34
Re: postgreSQL
Тогда так /opt/postgresql/bin/pgsql
добавь в ~/.profile , в переменную PATH строку /opt/postgresql/bin/
разделители двоеточие.
Offline
#19 21.03.07 09:44
Re: postgreSQL
Андрей Хаммер написал(а):
добавь в ~/.profile , в переменную PATH строку /opt/postgresql/bin/
разделители двоеточие.
какого пользователя?
я делаю все как написано на npj.ru/cake
там просто нужно создать пользователя postgres.
но у этого пользователя нет домашнего каталога
Исправлено skatina_2003 (21.03.07 09:46)
Offline
#20 21.03.07 17:27
Re: postgreSQL
skatina_2003 написал(а):
какого пользователя?
я делаю все как написано на npj.ru/cake
там просто нужно создать пользователя postgres.
но у этого пользователя нет домашнего каталога
Для текущего, под которым делается это все (обычно postgres)
Есть у него домашник.Лежит обычно в /var/lib/postgres. Узнать точно можно в /etc/passwd
Offline
#21 22.03.07 10:07
#22 22.03.07 11:04
Re: postgreSQL
сделал export PATH. теперь неконектит
postgres@Router:~$ createdb -O cake -E WIN cake
createdb: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Offline
#23 22.03.07 12:04
#24 22.03.07 12:19
#25 22.03.07 12:29
#26 22.03.07 12:30
Re: postgreSQL
ko_antoha, оно там и не будет, т.к. с исходников ставил. Стартовые скрипты должны лежать в папке contrib или чет подобное в папке с исходниками.
Offline
#27 22.03.07 12:31
#28 22.03.07 12:33
#29 22.03.07 12:37
#30 22.03.07 12:37
#31 22.03.07 12:40
#32 22.03.07 13:18
Re: postgreSQL
Не флуди.
Ставь с пакетов софт, рано еще тебе с исходников ставить.
Offline

