Closed ozbillwang closed 7 years ago
manually install the latest lua version (need dependency: yum install readline-devel
)
get new error:
/root/fpm-recipes/haproxy/tmp-build/haproxy-1.6.5/src/hlua.c:898: undefined reference to `lua_yieldk'
collect2: error: ld returned 1 exit status
make: *** [haproxy] Error 1
/usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/utils.rb:12:in `safesystem': 'system(["make", "TARGET=linux2628", "CPU=native", "USE_PCRE=1", "USE_PCRE_JIT=1", "USE_OPENSSL=1", "USE_ZLIB=1", "USE_LIBCRYPT=1", "USE_LUA=1"])' failed with error code: 2 (RuntimeError)
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/utils.rb:60:in `make'
from /root/fpm-recipes/haproxy/recipe.rb:27:in `build'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/packager.rb:149:in `block (2 levels) in dispense'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/packager.rb:138:in `chdir'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/packager.rb:138:in `block in dispense'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/packager.rb:115:in `chdir'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/packager.rb:115:in `dispense'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/cli.rb:113:in `exec'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/cli.rb:77:in `block in execute'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/book.rb:16:in `call'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/book.rb:16:in `load_recipe'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/lib/fpm/cookery/cli.rb:73:in `execute'
from /usr/local/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
from /usr/local/share/gems/gems/clamp-1.0.0/lib/clamp/subcommand/execution.rb:11:in `execute'
from /usr/local/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
from /usr/local/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
from /usr/local/share/gems/gems/fpm-cookery-0.31.0/bin/fpm-cook:7:in `<top (required)>'
from /usr/local/bin/fpm-cook:23:in `load'
from /usr/local/bin/fpm-cook:23:in `<main>'
[root@b7d6433f8d23 haproxy]#
Why is this issue closed? I have the same problem, so this has never been fixed :(
When build haproxy package in centos 7, got below errors:
and the system only have lua v5.1.4
I don't have the same issue, when directly
make
andmake install