Hello,

I’m trying an installation of Mastodon instance on tinkerboard running with Armbian OS.

I follow this topic : https://github.com/tootsuite/documentation/blob/master/Running-Mastodon/Production-guide.md

the last command i ran was : bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without development test

it returned me

`Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/hiredis-0.6.1/ext/hiredis_ext

/home/mastodon/.rbenv/versions/2.5.0/bin/ruby -r ./siteconf20180323-5075-8z8afl.rb extconf.rb checking for sys/socket.h... yes cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb arm net.c cc: error: arm: Aucun fichier ou dossier de ce type Makefile:136 : la recette pour la cible « net.o » a échouée make: *** [net.o] Erreur 1 *** 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=/home/mastodon/.rbenv/versions/2.5.0/bin/$(RUBY_BASE_NAME) extconf.rb:33:in block in <main>': Building hiredis failed (RuntimeError) from extconf.rb:31:inchdir' from extconf.rb:31:in `

'

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

/home/mastodon/live/vendor/bundle/ruby/2.5.0/extensions/armv7l-linux/2.5.0-static/hiredis-0.6.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/mastodon/live/vendor/bundle/ruby/2.5.0/gems/hiredis-0.6.1 for inspection. Results logged to /home/mastodon/live/vendor/bundle/ruby/2.5.0/extensions/armv7l-linux/2.5.0-static/hiredis-0.6.1/gem_make.out

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

In Gemfile: hiredis`

The problem seems to be that arm files or directory doesn’t exist but i didn’t find any solutions.

Anybody get an idea ?

Comment From: yarikdevcom

Yes, just, make -j$(nproc) ARCH='' works fine. Looks like this flag not supported with newer versions of gcc.

Comment From: yoav-steinberg

If still relevant try posting an issue at https://github.com/redis/hiredis-rb or https://github.com/redis/hiredis This isn't really related to the redis-server itself.