On 2/11/2016 10:44 AM, Andy Colson wrote:
On 2/11/2016 9:49 AM, Yury Zhuravlev wrote:
Yury Zhuravlev wrote:
I will try to fix soon.
I write as a corrected.
You can try again. Thanks!
That seems better:
-- Found Readline: /usr/include
-- Found Curses: /usr/lib64/libcurses.so
Is this bad?
-- Check size of int64
-- Check size of int64 - failed
-- Check size of uint64
-- Check size of uint64 - failed
-- Check size of int8
-- Check size of int8 - failed
make -j2
running now...
-Andy
make finished ok.
I build slackware packages, so it needs to install into a temp spot,
which kinda works:
andy@mapper:~/projects/postgres_cmake/build$ mkdir /tmp/pg999
I used to use "make install-strip", is that not a thing anymore?
andy@mapper:~/projects/postgres_cmake/build$ make install-strip
DESTDIR=/tmp/pg999
make: *** No rule to make target `install-strip'. Stop.
Ok, we'll install, but into a tmp folder:
andy@mapper:~/projects/postgres_cmake/build$ make install DESTDIR=/tmp/pg999
[ 0%] Built target gen_errorcodes
[ 3%] Built target port
[ 5%] Built target port_srv
<SNIP>
[100%] Built target refint
[100%] Built target timetravel
Install the project...
-- Install configuration: ""
-- Installing: /tmp/pg999/usr/local/pg99/lib/libpq.so
-- Installing: /tmp/pg999/usr/local/pg99/bin/initdb
<Ok .. looks good>
-- Removed runtime path from "/tmp/pg999/usr/local/pg99/bin/initdb"
<Not sure what that means, but ok>
<now we hit a problem>
-- Installing: /tmp/pg999/usr/local/pg99/share/timezonesets/Default
-- Installing: /tmp/pg999/usr/local/pg99/share/timezonesets/Australia
-- Installing: /tmp/pg999/usr/local/pg99/share/timezonesets/India
/home/andy/projects/postgres_cmake/build/src/timezone//zic: Cannot
create directory /usr/local/pg99: Permission denied
-- Installing: /tmp/pg999/usr/local/pg99/lib/plpgsql.so
-- Installing: /tmp/pg999/usr/local/pg99/share/extension/plpgsql.control
-- Installing: /tmp/pg999/usr/local/pg99/share/extension/plpgsql--1.0.sql
-- Installing:
/tmp/pg999/usr/local/pg99/share/extension/plpgsql--unpackaged--1.0.sql
I start with:
cmake .. -DCMAKE_INSTALL_PREFIX="/usr/local/pg99"
I'm not building/installing as root, so cannot actually write to
/usr/local/pg99
I dunno what version we are building, and dont want to replace anything
currently installed, so I went for pg99.
andy@mapper:~/projects/postgres_cmake/build$ make installcheck
Scanning dependencies of target tablespace-setup
[ 0%] Built target tablespace-setup
[ 0%] Built target gen_errorcodes
[ 42%] Built target port
[ 85%] Built target pq
[100%] Built target pgcommon
[100%] Built target pg_regress
Scanning dependencies of target installcheck
============== creating temporary instance ==============
============== initializing database system ==============
pg_regress: initdb failed
Examine
/home/andy/projects/postgres_cmake/src/test/regress/log/initdb.log for
the reason.
Command was: "/usr/local/pg99/bin/initdb" -D
"/home/andy/projects/postgres_cmake/src/test/regress/tmp_check/data"
--noclean --nosync --no-locale >
"/home/andy/projects/postgres_cmake/src/test/regress/log/initdb.log" 2>&1
make[3]: *** [src/test/regress/CMakeFiles/installcheck] Error 2
make[2]: *** [src/test/regress/CMakeFiles/installcheck.dir/all] Error 2
make[1]: *** [src/test/regress/CMakeFiles/installcheck.dir/rule] Error 2
make: *** [installcheck] Error 2
andy@mapper:~/projects/postgres_cmake/build$ cat
/home/andy/projects/postgres_cmake/src/test/regress/log/initdb.log
sh: /usr/local/pg99/bin/initdb: No such file or directory
Yeah, that makes sense, its not actually there yet. Is the installcheck
important to you? I can do the install if you like.
-Andy
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general