Infos:
- Used Zammad version: 5.4.1
- Used Zammad installation type: Source
- Operating system: SUSE 15
- Browser + version: NA
Expected behavior:
s
*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’, ‘http://127.0.0.1:9200’)”
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:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib64
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/usr/local/rvm/rubies/ruby-3.1.3/bin/$(RUBY_BASE_NAME)
–with-pg
–without-pg
–enable-windows-cross
–disable-windows-cross
–with-pg-config
–with-pg-dir
–without-pg-dir
–with-pg-include
–without-pg-include=${pg-dir}/include
–with-pg-lib
–without-pg-lib=${pg-dir}/lib64
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/rvm/gems/ruby-3.1.3/extensions/x86_64-linux/3.1.0/pg-1.2.3/mkmf.log
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