groonga / heroku-buildpack-groonga

Heroku buildpack for Groonga.
MIT License
5 stars 4 forks source link

undefined method `[]' for nil:NilClass (NoMethodError) #5

Closed naofumi-fujii closed 3 years ago

naofumi-fujii commented 3 years ago

def detect_latest_version in bin/compile causes undefined method[]' for nil:NilClass (NoMethodError)`

require "open-uri"
require "json"

def detect_latest_version
  uri = "https://api.github.com/repos/groonga/groonga/releases"
  releases = URI.open(uri) do |json|
    JSON.load(json)
  end
  latest_heroku_avaliable_release = releases.find do |release|
    assets = release["assets"] || []
    assets.any? do |asset|
      asset["name"].start_with?("heroku-groonga-")
    end
  end
  latest_heroku_avaliable_release["tag_name"].sub(/\Av/, "")
end
kou commented 3 years ago

Could you use https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt instead of this?

You can install groonga package by adding the followings to Aptfile:

:repo:deb http://ppa.launchpad.net/groonga/ppa/ubuntu focal main
groonga

But loading data to Groonga DB automatically feature isn't available with heroku-buildpack-apt. Do you want it?

naofumi-fujii commented 3 years ago

But loading data to Groonga DB automatically feature isn't available with heroku-buildpack-apt. Do you want it?

No, buildpack with Aptfile is ok for me. thank you!

naofumi-fujii commented 3 years ago

i got following build error, can you help?

-----> Building on the Heroku-20 stack
-----> Using buildpacks:
       1. heroku-community/apt
       2. heroku/ruby
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Adding custom repositories
-----> Updating apt caches
       Get:1 http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease [24.3 kB]
       Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [86.6 kB]
       Get:3 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
       Err:1 http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease
         The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3359E7CECB64A157
       Get:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [347 kB]
       Get:5 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
       Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
       Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
       Get:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
       Get:9 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [795 kB]
       Get:10 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,135 kB]
       Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,083 kB]
       Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,582 kB]
       Reading package lists...
W: GPG error: http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3359E7CECB64A157
E: The repository 'http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease' is not signed.
 !     Push rejected, failed to compile Apt app.
 !     Push failed

my Aptfile


$ cat Aptfile

:repo:deb http://ppa.launchpad.net/groonga/ppa/ubuntu focal main
groonga
kou commented 3 years ago

Could you try the following?

:repo:deb [trusted=yes] http://ppa.launchpad.net/groonga/ppa/ubuntu focal main
groonga
naofumi-fujii commented 3 years ago

it worked! thankyou. but i faced into another build error(not sure this is related to buildpack


-----> Building on the Heroku-20 stack
-----> Using buildpacks:
       1. heroku-community/apt
       2. heroku/ruby
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Adding custom repositories
-----> Updating apt caches
       Get:1 http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease [24.3 kB]
       Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
       Get:3 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [86.6 kB]
       Ign:1 http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease
       Get:4 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [347 kB]
       Get:5 http://ppa.launchpad.net/groonga/ppa/ubuntu focal/main amd64 Packages [4,898 B]
       Get:6 http://archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
       Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
       Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
       Get:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
       Get:10 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,135 kB]
       Get:11 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [795 kB]
       Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,582 kB]
       Get:13 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,083 kB]
       Fetched 18.2 MB in 2s (7,593 kB/s)
       Reading package lists...
W: GPG error: http://ppa.launchpad.net/groonga/ppa/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3359E7CECB64A157
-----> Fetching .debs for groonga
       Reading package lists...
       Building dependency tree...
       The following additional packages will be installed:
         groonga-bin groonga-doc groonga-plugin-suggest javascript-common libgroonga0
         libjs-jquery libjs-underscore libmsgpackc2 libnorm1 libpgm-5.2-0 libzmq5
       Suggested packages:
         apache2 | lighttpd | httpd
       The following NEW packages will be installed:
         groonga groonga-bin groonga-doc groonga-plugin-suggest javascript-common
         libgroonga0 libjs-jquery libjs-underscore libmsgpackc2 libnorm1 libpgm-5.2-0
         libzmq5
       0 upgraded, 12 newly installed, 0 to remove and 22 not upgraded.
       Need to get 4,939 kB of archives.
       After this operation, 38.8 MB of additional disk space will be used.
       Get:1 http://ppa.launchpad.net/groonga/ppa/ubuntu focal/main amd64 libgroonga0 amd64 11.0.7-1.ubuntu20.04.1 [1,807 kB]
       Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 libmsgpackc2 amd64 3.0.1-3 [14.9 kB]
       Get:3 http://archive.ubuntu.com/ubuntu focal/universe amd64 libnorm1 amd64 1.5.8+dfsg2-2build1 [290 kB]
       Get:4 http://archive.ubuntu.com/ubuntu focal/universe amd64 libpgm-5.2-0 amd64 5.2.122~dfsg-3ubuntu1 [158 kB]
       Get:5 http://archive.ubuntu.com/ubuntu focal/universe amd64 libzmq5 amd64 4.3.2-2ubuntu1 [242 kB]
       Get:6 http://archive.ubuntu.com/ubuntu focal-security/main amd64 libjs-underscore all 1.9.1~dfsg-1ubuntu0.20.04.1 [99.5 kB]
       Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 libjs-jquery all 3.3.1~dfsg-3 [329 kB]
       Get:8 http://archive.ubuntu.com/ubuntu focal/main amd64 javascript-common all 11 [6,066 B]
       Get:9 http://ppa.launchpad.net/groonga/ppa/ubuntu focal/main amd64 groonga-bin amd64 11.0.7-1.ubuntu20.04.1 [423 kB]
       Get:10 http://ppa.launchpad.net/groonga/ppa/ubuntu focal/main amd64 groonga-plugin-suggest amd64 11.0.7-1.ubuntu20.04.1 [75.3 kB]
       Get:11 http://ppa.launchpad.net/groonga/ppa/ubuntu focal/main amd64 groonga-doc all 11.0.7-1.ubuntu20.04.1 [1,486 kB]
       Get:12 http://ppa.launchpad.net/groonga/ppa/ubuntu focal/main amd64 groonga amd64 11.0.7-1.ubuntu20.04.1 [8,416 B]
       Fetched 4,939 kB in 2s (2,118 kB/s)
       Download complete and in download only mode
-----> Installing groonga_11.0.7-1.ubuntu20.04.1_amd64.deb
-----> Installing groonga-bin_11.0.7-1.ubuntu20.04.1_amd64.deb
-----> Installing groonga-doc_11.0.7-1.ubuntu20.04.1_all.deb
-----> Installing groonga-plugin-suggest_11.0.7-1.ubuntu20.04.1_amd64.deb
-----> Installing javascript-common_11_all.deb
-----> Installing libgroonga0_11.0.7-1.ubuntu20.04.1_amd64.deb
-----> Installing libjs-jquery_3.3.1~dfsg-3_all.deb
-----> Installing libjs-underscore_1.9.1~dfsg-1ubuntu0.20.04.1_all.deb
-----> Installing libmsgpackc2_3.0.1-3_amd64.deb
-----> Installing libnorm1_1.5.8+dfsg2-2build1_amd64.deb
-----> Installing libpgm-5.2-0_5.2.122~dfsg-3ubuntu1_amd64.deb
-----> Installing libzmq5_4.3.2-2ubuntu1_amd64.deb
-----> Writing profile script
-----> Rewrite package-config files
-----> Ruby app detected
-----> Installing bundler 1.17.3
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.6.6
-----> Installing dependencies using bundler 1.17.3
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 BUNDLE_GLOBAL_PATH_APPENDS_RUBY_SCOPE=1 bundle install -j4
       Fetching gem metadata from https://rails-assets.org/...
       Fetching gem metadata from https://rubygems.org/........
       Fetching gem metadata from https://rails-assets.org/...
       Using rake 13.0.3
       Using CFPropertyList 2.3.6
       Using concurrent-ruby 1.1.9
       Using minitest 5.14.4
       Using thread_safe 0.3.6
       Using zeitwerk 2.4.2
       Using builder 3.2.4
       Using erubi 1.10.0
       Using mini_portile2 2.5.1
       Using racc 1.5.2
       Using crass 1.0.6
       Using rack 2.2.3
       Using nio4r 2.5.7
       Using websocket-extensions 0.1.5
       Using marcel 1.0.1
       Using mini_mime 1.1.0
       Using public_suffix 4.0.6
       Using jsonapi-renderer 0.2.2
       Using httpclient 2.8.3
       Using json 2.5.1
       Fetching io-like 0.3.0
       Using ast 2.4.2
       Using execjs 2.7.0
       Using bcrypt_pbkdf 1.1.0
       Using ed25519 1.2.4
       Using net-ssh 6.1.0
       Using babel-source 5.8.35
       Using bcrypt 3.1.13
       Using msgpack 1.3.1
       Using ffi 1.14.2
       Using bootstrap_form 2.7.0
       Using rb-fsevent 0.10.3
       Using thor 0.20.3
       Using browser 2.7.1
       Using bundler 1.17.3
       Using mini_magick 4.9.5
       Using ssrf_filter 1.0.7
       Using multipart-post 2.1.1
       Using cocoon 1.2.9 from https://github.com/mtsmfm/cocoon.git (at fix-on-ready-for-jquery-3@4a14bb3)
       Using connection_pool 2.2.3
       Using redcarpet 3.5.1
       Using rouge 3.14.0
       Using declarative 0.0.20
       Using declarative-option 0.1.0
       Using orm_adapter 0.5.0
       Using method_source 1.0.0
       Using unf_ext 0.0.7.6
       Using dry-inflector 0.2.0
       Using excon 0.71.1
       Using fastimage 2.2.3
       Using formatador 0.2.5
       Using multi_json 1.15.0
       Using ipaddress 0.8.3
       Using xml-simple 1.1.5
       Using mime-types-data 3.2019.1009
       Using http-accept 1.7.0
       Using netrc 0.11.0
       Using optimist 3.0.0
       Using xmlrpc 0.3.0
       Using gems 1.2.0
       Using jwt 2.2.2
       Using memoist 0.16.2
       Using os 1.1.1
       Installing io-like 0.3.0
       Using uber 0.1.0
       Using retriable 3.1.2
       Using rexml 3.2.4
       Using webrick 1.7.0
       Fetching gqtp 1.0.7
       Fetching json-stream 0.2.1
       Installing gqtp 1.0.7
       Fetching hashie 4.0.0
       Installing json-stream 0.2.1
       Using temple 0.8.2
       Using tilt 2.0.10
       Using imperva_cloud_waf 0.1.0 from https://github.com/naofumi-fujii/imperva_cloud_waf.git (at master@a3414a5)
       Using jp_prefecture 1.0.0
       Using kaminari-core 1.2.1
       Using pg 1.2.0
       Fetching pkg-config 1.4.0
       Using rack-timeout 0.6.0
       Using woothee 1.10.0
       Using rails-assets-ace-builds 1.4.4
       Using rails-assets-jquery 3.4.1
       Using rails-assets-bowser 2.5.3
       Using rails-assets-js-cookie 2.2.1
       Using rails-assets-marked 0.7.0
       Using rails_serve_static_assets 0.0.5
       Using rails_stdout_logging 0.0.5
       Using redis 4.2.5
       Using rollbar 3.1.2
       Using romaji 0.2.4
       Using rubyzip 2.3.0
       Using seed_migration 1.2.3
       Using seedbank 0.5.0
       Using timeliness 0.4.3
       Using fission 0.5.0
       Installing hashie 4.0.0
       Using i18n 1.8.10
       Using tzinfo 1.2.9
       Using nokogiri 1.11.6 (x86_64-linux)
       Using rack-test 1.1.0
       Using websocket-driver 0.7.3
       Using mail 2.7.1
       Using addressable 2.7.0
       Using descendants_tracker 0.0.4
       Using warden 1.2.8
       Using sprockets 3.7.2
       Using ovirt-engine-sdk 4.3.0
       Fetching groonga-command 1.4.5
       Installing pkg-config 1.4.0
       Using heroku-deflater 0.6.3
       Using request_store 1.5.0
       Using puma 4.3.8
       Using rack-attack 6.5.0
       Using rack-cors 1.1.1
       Using rack-protection 2.1.0
       Using rack-proxy 0.6.5
       Using sitemap_generator 6.1.2
       Using algoliasearch 1.27.5
       Using autoprefixer-rails 9.7.3
       Using net-sftp 3.0.0
       Using babel-transpiler 0.7.0
       Using bootsnap 1.4.5
       Using sassc 2.2.1
       Using rb-inotify 0.10.1
       Using ruby-vips 2.0.17
       Using get_process_mem 0.2.5
       Installing groonga-command 1.4.5
       Using select2-rails 4.0.3
       Using uglifier 4.2.0
       Using faraday 0.17.4
       Using parser 3.0.0.0
       Using unf 0.1.4
       Using fog-core 1.45.0
       Using mime-types 3.3
       Using representable 3.0.4
       Fetching archive-zip 0.12.0
       Installing archive-zip 0.12.0
       Using hamlit 2.11.0
       Using rack-user_agent 0.5.2
       Using rails-assets-bootstrap 3.4.1
       Using rails-assets-spectrum 1.8.0
       Using rails_12factor 0.0.3
       Using validates_timeliness 4.1.1
       Using activesupport 6.0.3.6
       Using loofah 2.9.1
       Using mimemagic 0.4.3
       Using coercible 1.0.0
       Using rbvmomi 2.3.0
       Using nokogumbo 1.4.2
       Using non-stupid-digest-assets 1.0.9
       Using algoliasearch-rails 1.25.0
       Using b_dash 0.1.0 from https://github.com/naofumi-fujii/b_dash.git (at master@5a6e6bf)
       Using bootstrap-sass 3.4.1
       Using sass-listen 4.0.0
       Using image_processing 1.12.1
       Using sidekiq 6.0.4
       Using sprockets-es6 0.9.2
       Using puma_worker_killer 0.1.1
       Using faraday_middleware 0.13.1
       Using signet 0.15.0
       Using scout_apm 2.6.6
       Using domain_name 0.5.20190701
       Using fog-json 1.2.0
       Using fog-xml 0.1.3
       Using fog-local 0.6.0
       Using fog-vmfusion 0.1.0
       Using simpleidn 0.1.1
       Using rails-assets-bootstrap-markdown-editor-mtsmfm-fork 2.0.6
       Using rails-dom-testing 2.0.3
       Using rails-html-sanitizer 1.3.0
       Using globalid 0.4.2
       Using activemodel 6.0.3.6
       Using active_decorator 1.3.4
       Using active_hash 3.0.0
       Using case_transform 0.2
       Using sass 3.7.4
       Using cinii 0.1.1
       Using html-pipeline 2.14.0
       Using enumerize 2.3.1
       Using fog-aliyun 0.3.5
       Using fog-brightbox 0.16.1
       Using fog-dnsimple 1.0.0
       Using fog-joyent 0.0.1
       Using fog-openstack 0.3.10
       Using http-cookie 1.0.3
       Using fog-profitbricks 4.1.1
       Using fog-sakuracloud 1.7.5
       Using fog-serverlove 0.1.2
       Using fog-softlayer 1.1.4
       Using fog-storm_on_demand 0.1.1
       Using fog-vsphere 3.2.1
       Using googleauth 0.16.0
       Using jbuilder 2.9.1
       Using symmetric-encryption 3.9.1
       Using fog-atmos 0.1.0
       Using fog-aws 2.0.1
       Using fog-cloudatcost 0.1.2
       Using fog-digitalocean 0.4.0
       Using fog-dynect 0.0.3
       Using fog-ecloud 0.3.0
       Using fog-google 0.1.0
       Using fog-internet-archive 0.0.1
       Using fog-powerdns 0.2.0
       Using fog-rackspace 0.1.6
       Using fog-radosgw 0.0.5
       Using fog-riakcs 0.1.0
       Using fog-terremark 0.1.0
       Using fog-voxel 0.1.0
       Using fog-xenserver 1.0.0
       Fetching groonga-command-parser 1.1.4
       Using activejob 6.0.3.6
       Using actionview 6.0.3.6
       Using bourbon 4.3.4
       Using font-awesome-sass 4.7.0
       Using neat 1.8.0
       Using activerecord 6.0.3.6
       Using carrierwave 2.1.1
       Installing groonga-command-parser 1.1.4
       Using daimon_markdown 0.6.0
       Using rest-client 2.1.0
       Using google-apis-core 0.3.0
       Using actionpack 6.0.3.6
       Using kaminari-actionview 1.2.1
       Using activerecord-import 1.0.8
       Using ancestry 3.0.7
       Using kaminari-activerecord 1.2.1
       Using order_as_specified 1.7
       Using paper_trail 11.1.0
       Using polyamorous 2.3.0
       Using seed_dump 3.3.1
       Using shibaraku 2.0.0
       Using strong_migrations 0.7.6
       Using rbovirt 0.1.7
       Using actioncable 6.0.3.6
       Using activestorage 6.0.3.6
       Using actionmailer 6.0.3.6
       Using active_link_to 1.0.5
       Using active_model_serializers 0.10.12
       Using railties 6.0.3.6
       Using sprockets-rails 3.2.2
       Using google-apis-discovery_v1 0.2.0
       Using meta-tags 2.14.0
       Using simple_form 5.0.1
       Using actionmailbox 6.0.3.6
       Using actiontext 6.0.3.6
       Using fog-ovirt 1.2.4
       Using kaminari 1.2.1
       Using ransack 2.3.0
       Using responders 3.0.0
       Using rails 6.0.3.6
       Using es6-promise-rails 3.2.1
       Using fog 2.0.0
       Using google-apis-generator 0.2.0
       Using gretel 4.2.0
       Using hamlit-rails 0.2.3
       Using jquery-rails 4.3.5
       Using lograge 0.11.2
       Using rails-i18n 6.0.0
       Using rambulance 1.0.3
       Using react-rails 1.11.0
       Using sassc-rails 2.1.2
       Using webpacker 4.2.2
       Using devise 4.7.1
       Using polymer-rails 1.3.0
       Using devise_token_auth 1.1.3
       Using google-api-client 0.53.0
       Fetching groonga-client 0.6.2
       Using polymer-elements-rails 1.1.1 from https://github.com/alchapone/polymer-elements-rails.git (at master@1b54002)
       Using sass-rails 6.0.0
       Installing groonga-client 0.6.2
       Fetching rroonga 7.0.2
       Installing rroonga 7.0.2 with native extensions
       Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

       current directory:
       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/gems/rroonga-7.0.2/ext/groonga
       /tmp/build_45fd4798/vendor/ruby-2.6.6/bin/ruby -I
       /tmp/build_45fd4798/vendor/ruby-2.6.6/lib/ruby/2.6.0 -r
       ./siteconf20211007-642-1xko6lu.rb extconf.rb
       checking for GCC... yes
       checking for Win32 OS... no
       checking for groonga version (>= 7.0.2)... no
       downloading http://packages.groonga.org/source/groonga/groonga-7.0.2.tar.gz...
       done
       extracting... done
       configuring... done
       building (maybe long time)... failed
       *** extconf.rb failed ***
       Could not create Makefile due to some reason, probably lack of necessary
       libraries and/or headers.  Check the mkmf.log file for more details.  You may
       need configuration options.

       Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/tmp/build_45fd4798/vendor/ruby-2.6.6/bin/$(RUBY_BASE_NAME)
        --with-pkg-config
        --without-pkg-config
        --with-override-variables
        --without-override-variables

       To see why this extension failed to compile, please check the mkmf.log which can
       be found here:

       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/rroonga-7.0.2/mkmf.log

       extconf failed, exit code 1

       Gem files will remain installed in
       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/gems/rroonga-7.0.2 for inspection.
       Results logged to
       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/rroonga-7.0.2/gem_make.out

       An error occurred while installing rroonga (7.0.2), and Bundler cannot continue.
       Make sure that `gem install rroonga -v '7.0.2'` succeeds before bundling.

       In Gemfile:
         rroonga
       Bundler Output: Fetching gem metadata from https://rails-assets.org/...
       Fetching gem metadata from https://rubygems.org/........
       Fetching gem metadata from https://rails-assets.org/...
       Using rake 13.0.3
       Using CFPropertyList 2.3.6
       Using concurrent-ruby 1.1.9
       Using minitest 5.14.4
       Using thread_safe 0.3.6
       Using zeitwerk 2.4.2
       Using builder 3.2.4
       Using erubi 1.10.0
       Using mini_portile2 2.5.1
       Using racc 1.5.2
       Using crass 1.0.6
       Using rack 2.2.3
       Using nio4r 2.5.7
       Using websocket-extensions 0.1.5
       Using marcel 1.0.1
       Using mini_mime 1.1.0
       Using public_suffix 4.0.6
       Using jsonapi-renderer 0.2.2
       Using httpclient 2.8.3
       Using json 2.5.1
       Fetching io-like 0.3.0
       Using ast 2.4.2
       Using execjs 2.7.0
       Using bcrypt_pbkdf 1.1.0
       Using ed25519 1.2.4
       Using net-ssh 6.1.0
       Using babel-source 5.8.35
       Using bcrypt 3.1.13
       Using msgpack 1.3.1
       Using ffi 1.14.2
       Using bootstrap_form 2.7.0
       Using rb-fsevent 0.10.3
       Using thor 0.20.3
       Using browser 2.7.1
       Using bundler 1.17.3
       Using mini_magick 4.9.5
       Using ssrf_filter 1.0.7
       Using multipart-post 2.1.1
       Using cocoon 1.2.9 from https://github.com/mtsmfm/cocoon.git (at fix-on-ready-for-jquery-3@4a14bb3)
       Using connection_pool 2.2.3
       Using redcarpet 3.5.1
       Using rouge 3.14.0
       Using declarative 0.0.20
       Using declarative-option 0.1.0
       Using orm_adapter 0.5.0
       Using method_source 1.0.0
       Using unf_ext 0.0.7.6
       Using dry-inflector 0.2.0
       Using excon 0.71.1
       Using fastimage 2.2.3
       Using formatador 0.2.5
       Using multi_json 1.15.0
       Using ipaddress 0.8.3
       Using xml-simple 1.1.5
       Using mime-types-data 3.2019.1009
       Using http-accept 1.7.0
       Using netrc 0.11.0
       Using optimist 3.0.0
       Using xmlrpc 0.3.0
       Using gems 1.2.0
       Using jwt 2.2.2
       Using memoist 0.16.2
       Using os 1.1.1
       Installing io-like 0.3.0
       Using uber 0.1.0
       Using retriable 3.1.2
       Using rexml 3.2.4
       Using webrick 1.7.0
       Fetching gqtp 1.0.7
       Fetching json-stream 0.2.1
       Installing gqtp 1.0.7
       Fetching hashie 4.0.0
       Installing json-stream 0.2.1
       Using temple 0.8.2
       Using tilt 2.0.10
       Using imperva_cloud_waf 0.1.0 from https://github.com/naofumi-fujii/imperva_cloud_waf.git (at master@a3414a5)
       Using jp_prefecture 1.0.0
       Using kaminari-core 1.2.1
       Using pg 1.2.0
       Fetching pkg-config 1.4.0
       Using rack-timeout 0.6.0
       Using woothee 1.10.0
       Using rails-assets-ace-builds 1.4.4
       Using rails-assets-jquery 3.4.1
       Using rails-assets-bowser 2.5.3
       Using rails-assets-js-cookie 2.2.1
       Using rails-assets-marked 0.7.0
       Using rails_serve_static_assets 0.0.5
       Using rails_stdout_logging 0.0.5
       Using redis 4.2.5
       Using rollbar 3.1.2
       Using romaji 0.2.4
       Using rubyzip 2.3.0
       Using seed_migration 1.2.3
       Using seedbank 0.5.0
       Using timeliness 0.4.3
       Using fission 0.5.0
       Installing hashie 4.0.0
       Using i18n 1.8.10
       Using tzinfo 1.2.9
       Using nokogiri 1.11.6 (x86_64-linux)
       Using rack-test 1.1.0
       Using websocket-driver 0.7.3
       Using mail 2.7.1
       Using addressable 2.7.0
       Using descendants_tracker 0.0.4
       Using warden 1.2.8
       Using sprockets 3.7.2
       Using ovirt-engine-sdk 4.3.0
       Fetching groonga-command 1.4.5
       Installing pkg-config 1.4.0
       Using heroku-deflater 0.6.3
       Using request_store 1.5.0
       Using puma 4.3.8
       Using rack-attack 6.5.0
       Using rack-cors 1.1.1
       Using rack-protection 2.1.0
       Using rack-proxy 0.6.5
       Using sitemap_generator 6.1.2
       Using algoliasearch 1.27.5
       Using autoprefixer-rails 9.7.3
       Using net-sftp 3.0.0
       Using babel-transpiler 0.7.0
       Using bootsnap 1.4.5
       Using sassc 2.2.1
       Using rb-inotify 0.10.1
       Using ruby-vips 2.0.17
       Using get_process_mem 0.2.5
       Installing groonga-command 1.4.5
       Using select2-rails 4.0.3
       Using uglifier 4.2.0
       Using faraday 0.17.4
       Using parser 3.0.0.0
       Using unf 0.1.4
       Using fog-core 1.45.0
       Using mime-types 3.3
       Using representable 3.0.4
       Fetching archive-zip 0.12.0
       Installing archive-zip 0.12.0
       Using hamlit 2.11.0
       Using rack-user_agent 0.5.2
       Using rails-assets-bootstrap 3.4.1
       Using rails-assets-spectrum 1.8.0
       Using rails_12factor 0.0.3
       Using validates_timeliness 4.1.1
       Using activesupport 6.0.3.6
       Using loofah 2.9.1
       Using mimemagic 0.4.3
       Using coercible 1.0.0
       Using rbvmomi 2.3.0
       Using nokogumbo 1.4.2
       Using non-stupid-digest-assets 1.0.9
       Using algoliasearch-rails 1.25.0
       Using b_dash 0.1.0 from https://github.com/naofumi-fujii/b_dash.git (at master@5a6e6bf)
       Using bootstrap-sass 3.4.1
       Using sass-listen 4.0.0
       Using image_processing 1.12.1
       Using sidekiq 6.0.4
       Using sprockets-es6 0.9.2
       Using puma_worker_killer 0.1.1
       Using faraday_middleware 0.13.1
       Using signet 0.15.0
       Using scout_apm 2.6.6
       Using domain_name 0.5.20190701
       Using fog-json 1.2.0
       Using fog-xml 0.1.3
       Using fog-local 0.6.0
       Using fog-vmfusion 0.1.0
       Using simpleidn 0.1.1
       Using rails-assets-bootstrap-markdown-editor-mtsmfm-fork 2.0.6
       Using rails-dom-testing 2.0.3
       Using rails-html-sanitizer 1.3.0
       Using globalid 0.4.2
       Using activemodel 6.0.3.6
       Using active_decorator 1.3.4
       Using active_hash 3.0.0
       Using case_transform 0.2
       Using sass 3.7.4
       Using cinii 0.1.1
       Using html-pipeline 2.14.0
       Using enumerize 2.3.1
       Using fog-aliyun 0.3.5
       Using fog-brightbox 0.16.1
       Using fog-dnsimple 1.0.0
       Using fog-joyent 0.0.1
       Using fog-openstack 0.3.10
       Using http-cookie 1.0.3
       Using fog-profitbricks 4.1.1
       Using fog-sakuracloud 1.7.5
       Using fog-serverlove 0.1.2
       Using fog-softlayer 1.1.4
       Using fog-storm_on_demand 0.1.1
       Using fog-vsphere 3.2.1
       Using googleauth 0.16.0
       Using jbuilder 2.9.1
       Using symmetric-encryption 3.9.1
       Using fog-atmos 0.1.0
       Using fog-aws 2.0.1
       Using fog-cloudatcost 0.1.2
       Using fog-digitalocean 0.4.0
       Using fog-dynect 0.0.3
       Using fog-ecloud 0.3.0
       Using fog-google 0.1.0
       Using fog-internet-archive 0.0.1
       Using fog-powerdns 0.2.0
       Using fog-rackspace 0.1.6
       Using fog-radosgw 0.0.5
       Using fog-riakcs 0.1.0
       Using fog-terremark 0.1.0
       Using fog-voxel 0.1.0
       Using fog-xenserver 1.0.0
       Fetching groonga-command-parser 1.1.4
       Using activejob 6.0.3.6
       Using actionview 6.0.3.6
       Using bourbon 4.3.4
       Using font-awesome-sass 4.7.0
       Using neat 1.8.0
       Using activerecord 6.0.3.6
       Using carrierwave 2.1.1
       Installing groonga-command-parser 1.1.4
       Using daimon_markdown 0.6.0
       Using rest-client 2.1.0
       Using google-apis-core 0.3.0
       Using actionpack 6.0.3.6
       Using kaminari-actionview 1.2.1
       Using activerecord-import 1.0.8
       Using ancestry 3.0.7
       Using kaminari-activerecord 1.2.1
       Using order_as_specified 1.7
       Using paper_trail 11.1.0
       Using polyamorous 2.3.0
       Using seed_dump 3.3.1
       Using shibaraku 2.0.0
       Using strong_migrations 0.7.6
       Using rbovirt 0.1.7
       Using actioncable 6.0.3.6
       Using activestorage 6.0.3.6
       Using actionmailer 6.0.3.6
       Using active_link_to 1.0.5
       Using active_model_serializers 0.10.12
       Using railties 6.0.3.6
       Using sprockets-rails 3.2.2
       Using google-apis-discovery_v1 0.2.0
       Using meta-tags 2.14.0
       Using simple_form 5.0.1
       Using actionmailbox 6.0.3.6
       Using actiontext 6.0.3.6
       Using fog-ovirt 1.2.4
       Using kaminari 1.2.1
       Using ransack 2.3.0
       Using responders 3.0.0
       Using rails 6.0.3.6
       Using es6-promise-rails 3.2.1
       Using fog 2.0.0
       Using google-apis-generator 0.2.0
       Using gretel 4.2.0
       Using hamlit-rails 0.2.3
       Using jquery-rails 4.3.5
       Using lograge 0.11.2
       Using rails-i18n 6.0.0
       Using rambulance 1.0.3
       Using react-rails 1.11.0
       Using sassc-rails 2.1.2
       Using webpacker 4.2.2
       Using devise 4.7.1
       Using polymer-rails 1.3.0
       Using devise_token_auth 1.1.3
       Using google-api-client 0.53.0
       Fetching groonga-client 0.6.2
       Using polymer-elements-rails 1.1.1 from https://github.com/alchapone/polymer-elements-rails.git (at master@1b54002)
       Using sass-rails 6.0.0
       Installing groonga-client 0.6.2
       Fetching rroonga 7.0.2
       Installing rroonga 7.0.2 with native extensions
       Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

       current directory:
       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/gems/rroonga-7.0.2/ext/groonga
       /tmp/build_45fd4798/vendor/ruby-2.6.6/bin/ruby -I
       /tmp/build_45fd4798/vendor/ruby-2.6.6/lib/ruby/2.6.0 -r
       ./siteconf20211007-642-1xko6lu.rb extconf.rb
       checking for GCC... yes
       checking for Win32 OS... no
       checking for groonga version (>= 7.0.2)... no
       downloading http://packages.groonga.org/source/groonga/groonga-7.0.2.tar.gz...
       done
       extracting... done
       configuring... done
       building (maybe long time)... failed
       *** extconf.rb failed ***
       Could not create Makefile due to some reason, probably lack of necessary
       libraries and/or headers.  Check the mkmf.log file for more details.  You may
       need configuration options.

       Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/tmp/build_45fd4798/vendor/ruby-2.6.6/bin/$(RUBY_BASE_NAME)
        --with-pkg-config
        --without-pkg-config
        --with-override-variables
        --without-override-variables

       To see why this extension failed to compile, please check the mkmf.log which can
       be found here:

       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/rroonga-7.0.2/mkmf.log

       extconf failed, exit code 1

       Gem files will remain installed in
       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/gems/rroonga-7.0.2 for inspection.
       Results logged to
       /tmp/build_45fd4798/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/rroonga-7.0.2/gem_make.out

       An error occurred while installing rroonga (7.0.2), and Bundler cannot continue.
       Make sure that `gem install rroonga -v '7.0.2'` succeeds before bundling.

       In Gemfile:
         rroonga
 !
 !     Failed to install gems via Bundler.
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed
kou commented 3 years ago

You need to install libgroonga-dev not groonga for using with Rroonga.

naofumi-fujii commented 3 years ago

installing libgroonga-dev worked for me. thank you!

kou commented 3 years ago

Good to hear it. Could you open an pull request to update our README to suggest heroku-buildpack-apt instead of this and how to use Groonga and Rroonga with heroku-buildpack-apt?