While trying to Set the Elasticsearch server addresss seeing a message as required ruby


  • Used Zammad version: 5.4.1
  • Used Zammad installation type: Source
  • Operating system: SUSE 15
  • Browser + version: NA

Expected behavior:

*Zammad is installed and running but we are unable to run the below command that shows below error.
unos:~ # zammad run rails r “Setting.set(‘es_url’, ‘’)”
ruby: /lib64/libcrypt.so.1: version XCRYPT_2.0' not found (required by ruby) ruby: /lib64/libm.so.6: version GLIBC_2.29’ not found (required by ruby)
ruby: /lib64/libc.so.6: version GLIBC_2.28' not found (required by ruby) ruby: /lib64/libc.so.6: version GLIBC_2.27’ not found (required by ruby)

unos:~ # su - zammad
Using /usr/local/rvm/gems/ruby-3.1.3

We see ruby is also installed on the server, we see erros while running below command, Need you assistance here please.

unos:~ # gem install pg -v ‘1.2.3’ – --with-pg-config=/usr/pgsql-14/bin/pg_config
Building native extensions with: ‘–with-pg-config=/usr/pgsql-14/bin/pg_config’
This could take a while…
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.

current directory: /usr/local/rvm/gems/ruby-3.1.3/gems/pg-1.2.3/ext

/usr/local/rvm/rubies/ruby-3.1.3/bin/ruby -I /usr/local/rvm/rubies/ruby-3.1.3/lib64/ruby/3.1.0 extconf.rb --with-pg-config=/usr/pgsql-14/bin/pg_config
Using config values from /usr/pgsql-14/bin/pg_config
sh: /usr/pgsql-14/bin/pg_config: No such file or directory
sh: /usr/pgsql-14/bin/pg_config: No such file or directory
checking for libpq-fe.h… no
Can’t find the 'libpq-fe.h header
*** 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:

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


extconf failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-3.1.3/gems/pg-1.2.3 for inspection.
Results logged to /usr/local/rvm/gems/ruby-3.1.3/extensions/x86_64-linux/3.1.0/pg-1.2.3/gem_make.out

Actual behavior:

Steps to reproduce the behavior:

ruby issue was fixed by migrating our linux server from 15sp1 to 15sp3.

unos:~ # zammad run rails r “Setting.set(‘es_url’, ‘http://localhost:9200’)”
unos:~ # zammad run rake zammad:searchindex:rebuild
Dropping indexes… done.
Deleting pipeline… done.
Creating indexes… done.
Creating pipeline… done.
Reloading data…

  • Chat::Session…
    done in 0 seconds.
  • Cti::Log…
    done in 0 seconds.
  • Group…
    done in 0 seconds.
  • KnowledgeBase::Answer::Translation…
    done in 0 seconds.
  • KnowledgeBase::Category::Translation…
    done in 0 seconds.
  • KnowledgeBase::Translation…
    done in 0 seconds.
  • Organization…
    done in 0 seconds.
  • StatsStore…
    done in 0 seconds.
  • Ticket::Priority…
    done in 0 seconds.
  • Ticket::State…
    done in 0 seconds.
  • Ticket…
    done in 0 seconds.
  • User…
    done in 0 seconds.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.