pgroonga / pgroonga

PGroonga is a PostgreSQL extension to use Groonga as index. PGroonga makes PostgreSQL fast full text search platform for all languages!
https://pgroonga.github.io/
Other
547 stars 23 forks source link

Cannot run on travis-ci due to error with msgpack #71

Closed JasonTrue closed 6 years ago

JasonTrue commented 6 years ago

I am having issues with Travis-Ci since this commit was applied https://github.com/pgroonga/pgroonga/commit/8e33949f17ff067fd8afc64fdf57bb74ec88dfbf

It looks like msgpack is being installed but perhaps the location of the library is not quite where it's expected. Am I missing something?

The most salient bits of .travis.yml:

  "os": "linux",
  "rvm": "2.5.1",
  "dist": "trusty",
  "sudo": "required",
  "addons": {
    "chrome": "stable",
    "postgresql": "9.6"
  },

install is via "install": [ curl --silent --location https://raw.githubusercontent.com/pgroonga/pgroonga/master/data/travis/setup.sh | sh,

Log output:

W: http://ppa.launchpad.net/couchdb/stable/ubuntu/dists/trusty/Release.gpg: Signature by key 15866BAFD9BCC4F3C1E0DFC7D69548E1C17EAB57 uses weak digest algorithm (SHA1)
Selecting previously unselected package libmsgpackc2.
(Reading database ... 93699 files and directories currently installed.)
Preparing to unpack .../libmsgpackc2_0.5.7-3ubuntu1_amd64.deb ...
Unpacking libmsgpackc2 (0.5.7-3ubuntu1) ...
Selecting previously unselected package liblz4-1:amd64.
Preparing to unpack .../liblz4-1_0.0~r114-2ubuntu1_amd64.deb ...
Unpacking liblz4-1:amd64 (0.0~r114-2ubuntu1) ...
Selecting previously unselected package libjemalloc1.
Preparing to unpack .../libjemalloc1_3.6.0-1chl1~trusty1_amd64.deb ...
Unpacking libjemalloc1 (3.6.0-1chl1~trusty1) ...
Selecting previously unselected package libgroonga0:amd64.
Preparing to unpack .../libgroonga0_8.0.4-2~trusty1_amd64.deb ...
Unpacking libgroonga0:amd64 (8.0.4-2~trusty1) ...
Selecting previously unselected package libpgm-5.1-0:amd64.
Preparing to unpack .../libpgm-5.1-0_5.1.118-1~dfsg-0.1ubuntu3_amd64.deb ...
Unpacking libpgm-5.1-0:amd64 (5.1.118-1~dfsg-0.1ubuntu3) ...
Selecting previously unselected package libzmq3:amd64.
Preparing to unpack .../libzmq3_4.0.4+dfsg-2_amd64.deb ...
Unpacking libzmq3:amd64 (4.0.4+dfsg-2) ...
Selecting previously unselected package groonga-bin.
Preparing to unpack .../groonga-bin_8.0.4-2~trusty1_amd64.deb ...
Unpacking groonga-bin (8.0.4-2~trusty1) ...
Selecting previously unselected package groonga-plugin-suggest.
Preparing to unpack .../groonga-plugin-suggest_8.0.4-2~trusty1_amd64.deb ...
Unpacking groonga-plugin-suggest (8.0.4-2~trusty1) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../libjs-underscore_1.4.4-2ubuntu1_all.deb ...
Unpacking libjs-underscore (1.4.4-2ubuntu1) ...
Selecting previously unselected package groonga-doc.
Preparing to unpack .../groonga-doc_8.0.4-2~trusty1_all.deb ...
Unpacking groonga-doc (8.0.4-2~trusty1) ...
Selecting previously unselected package groonga.
Preparing to unpack .../groonga_8.0.4-2~trusty1_amd64.deb ...
Unpacking groonga (8.0.4-2~trusty1) ...
Selecting previously unselected package libgroonga-dev:amd64.
Preparing to unpack .../libgroonga-dev_8.0.4-2~trusty1_amd64.deb ...
Unpacking libgroonga-dev:amd64 (8.0.4-2~trusty1) ...
Setting up libmsgpackc2 (0.5.7-3ubuntu1) ...
Setting up liblz4-1:amd64 (0.0~r114-2ubuntu1) ...
Setting up libjemalloc1 (3.6.0-1chl1~trusty1) ...
Setting up libgroonga0:amd64 (8.0.4-2~trusty1) ...
Setting up libpgm-5.1-0:amd64 (5.1.118-1~dfsg-0.1ubuntu3) ...
Setting up libzmq3:amd64 (4.0.4+dfsg-2) ...
Setting up groonga-bin (8.0.4-2~trusty1) ...
Setting up groonga-plugin-suggest (8.0.4-2~trusty1) ...
Setting up libjs-underscore (1.4.4-2ubuntu1) ...
Setting up groonga-doc (8.0.4-2~trusty1) ...
Setting up groonga (8.0.4-2~trusty1) ...
Setting up libgroonga-dev:amd64 (8.0.4-2~trusty1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...
Selecting previously unselected package postgresql-server-dev-9.6.
(Reading database ... 94592 files and directories currently installed.)
Preparing to unpack .../postgresql-server-dev-9.6_9.6.9-2.pgdg14.04+1_amd64.deb ...
Unpacking postgresql-server-dev-9.6 (9.6.9-2.pgdg14.04+1) ...
Setting up postgresql-server-dev-9.6 (9.6.9-2.pgdg14.04+1) ...
Package msgpack was not found in the pkg-config search path.
Perhaps you should add the directory containing `msgpack.pc'
to the PKG_CONFIG_PATH environment variable
No package 'msgpack' found
In file included from src/pgroonga.c:5:0:
src/pgrn-alias.h:6:21: fatal error: groonga.h: No such file or directory
 #include <groonga.h>
                     ^
compilation terminated.
make[1]: *** [src/pgroonga.o] Error 1
make: *** [all] Error 2
The command "curl --silent --location https://raw.githubusercontent.com/pgroonga/pgroonga/master/data/travis/setup.sh | sh" failed and exited with 2 during .
Your build has been stopped.
kou commented 6 years ago

Thanks for your report. I've pushed a fix. Can you try again?

JasonTrue commented 6 years ago

I've pointed to master again (instead of the prior version) and I am receiving the same error as before.

However,

Selecting previously unselected package libmsgpack-dev.
Preparing to unpack .../libmsgpack-dev_0.5.7-3ubuntu1_amd64.deb ...
Unpacking libmsgpack-dev (0.5.7-3ubuntu1) ...
Setting up postgresql-server-dev-9.6 (9.6.9-2.pgdg14.04+1) ...
Setting up libmsgpack3 (0.5.7-3ubuntu1) ...
Setting up libmsgpack-dev (0.5.7-3ubuntu1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.13) ...

now appears in the travis output. Unfortunately, I get the same compile time error.

kou commented 6 years ago

Ah, we need more configuration because libmsgpack-dev on Ubuntu 14.04 is old. I've pushed it. Can you try again?

JasonTrue commented 6 years ago

Ah, looking at my CI build now that appears to have done the trick. Thanks!