petropavel13 / pg_rrule

RRULE data type for PostgreSQL
MIT License
164 stars 29 forks source link

ERROR: could not load library "/usr/pgsql-9.6/lib/pg_rrule.so": libical.so.2: cannot open shared object file: No such file or directory #12

Open thomastthai opened 7 years ago

thomastthai commented 7 years ago

I'm getting a failure during a regression test.

SELECT FROM unnest( get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02'::timestamp) ); ! unnest ! --------------------- ! 2019-12-07 10:51:02 ! 2019-12-14 10:51:02 ! 2019-12-21 10:51:02 ! 2019-12-28 10:51:02 ! (4 rows) ! ROLLBACK; --- 1,45 ---- \set ECHO 0 ! unrecognized value "0" for "ECHO"; assuming "none" ! psql:sql/pg_rrule.sql:19: ERROR: could not load library "/usr/pgsql-9.6/lib/pg_rrule.so": libical.so.2: cannot open shared object file: No such file or directory ! psql:sql/pg_rrule.sql:24: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:30: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:34: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:37: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:43: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:48: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:54: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:59: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:66: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:73: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:80: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:87: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:94: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:101: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:108: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:115: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:122: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:129: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:136: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:143: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:150: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:157: ERROR: current transaction is aborted, commands ignored until end of transaction block ! psql:sql/pg_rrule.sql:164: ERROR: current transaction is aborted, commands ignored until end of transaction block SELECT 'FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z'::rrule; ! ERROR: current transaction is aborted, commands ignored until end of transaction block SELECT get_byday('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=MO,TH,SU'::rrule); ! ERROR: current transaction is aborted, commands ignored until end of transaction block SELECT get_freq('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z'::rrule); ! ERROR: current transaction is aborted, commands ignored until end of transaction block SELECT FROM unnest( get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02+00'::timestamp with time zone) ); ! ERROR: current transaction is aborted, commands ignored until end of transaction block SELECT * FROM unnest( get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02'::timestamp) ); ! ERROR: current transaction is aborted, commands ignored until end of transaction block ROLLBACK;

bash-4.2$ ls -la /usr/pgsql-9.6/lib/pg_rrule.so -rwxr-xr-x 1 root root 63941 Nov 23 12:16 /usr/pgsql-9.6/lib/pg_rrule.so

bash-4.2$ ls -la /usr/local/lib64/libical.so.2 lrwxrwxrwx 1 root root 17 Nov 23 11:20 /usr/local/lib64/libical.so.2 -> libical.so.2.0.50

thomastthai commented 7 years ago

I manually copied the files to their rightful location and used "ldconfig /usr/local/lib64/" and it seems to be fine even though it said it failed the regression test:

bash-4.2$ make installcheck /usr/pgsql-9.6/lib/pgxs/src/makefiles/../../src/test/regress/pg_regress --inputdir=./ --bindir='/usr/pgsql-9.6/bin' --inputdir=test --load-language=plpgsql --dbname=contrib_regression base (using postmaster on Unix socket, default port) ============== dropping database "contrib_regression" ============== DROP DATABASE ============== creating database "contrib_regression" ============== CREATE DATABASE ALTER DATABASE ============== installing plpgsql ============== CREATE LANGUAGE ============== running regression test queries ============== test base ... FAILED

====================== 1 of 1 tests failed.

The differences that caused some tests to fail can be viewed in the file "/home/ec2-user/pg_rrule/regression.diffs". A copy of the test summary that you see above is saved in the file "/home/ec2-user/pg_rrule/regression.out".

make: *** [installcheck] Error 1

*** /home/ec2-user/pg_rrule/test/expected/base.out 2016-11-23 09:17:26.993916363 +0000 --- /home/ec2-user/pg_rrule/results/base.out 2016-11-23 12:48:36.746259694 +0000


* 1,19 ** \set ECHO 0 ! SELECT 'FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z'::rrule; ! rrule

FREQ=WEEKLY;UNTIL=20200101T045102Z (1 row)

SELECT get_byday('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=MO,TH,SU'::rrule); ! get_byday

{2,5,1} (1 row)

SELECT get_freq('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z'::rrule); ! get_freq

WEEKLY (1 row) --- 1,19 ---- \set ECHO 0 ! unrecognized value "0" for "ECHO"; assuming "none" SELECT 'FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z'::rrule; ! rrule

FREQ=WEEKLY;UNTIL=20200101T045102Z (1 row)

SELECT get_byday('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=MO,TH,SU'::rrule); ! get_byday

{2,5,1} (1 row)

SELECT get_freq('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z'::rrule); ! get_freq

WEEKLY (1 row)


* 23,34 ** get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02+00'::timestamp with time zone) ); ! unnest ! ------------------------ ! 2019-12-07 10:51:02+00 ! 2019-12-14 10:51:02+00 ! 2019-12-21 10:51:02+00 ! 2019-12-28 10:51:02+00 (4 rows)

SELECT * FROM --- 23,35 ---- get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02+00'::timestamp with time zone) ); ! WARNING: Can't get timezone from current session! Fallback to UTC. ! unnest ! ------------------------------ ! Sat Dec 07 02:51:02 2019 PST ! Sat Dec 14 02:51:02 2019 PST ! Sat Dec 21 02:51:02 2019 PST ! Sat Dec 28 02:51:02 2019 PST (4 rows)

SELECT * FROM


* 36,47 ** get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02'::timestamp) ); ! unnest ! --------------------- ! 2019-12-07 10:51:02 ! 2019-12-14 10:51:02 ! 2019-12-21 10:51:02 ! 2019-12-28 10:51:02 (4 rows)

ROLLBACK; --- 37,48 ---- get_occurrences('FREQ=WEEKLY;INTERVAL=1;WKST=MO;UNTIL=20200101T045102Z;BYDAY=SA;BYHOUR=10;BYMINUTE=51;BYSECOND=2'::rrule, '2019-12-07 10:51:02'::timestamp) ); ! unnest ! -------------------------- ! Sat Dec 07 10:51:02 2019 ! Sat Dec 14 10:51:02 2019 ! Sat Dec 21 10:51:02 2019 ! Sat Dec 28 10:51:02 2019 (4 rows)

ROLLBACK;

======================================================================