【发布时间】:2018-01-10 04:01:03
【问题描述】:
我正在尝试使用调试符号从源代码编译 Ruby。我没有使用rbenv或rvm等。
我已经试过了
./configure optflags="-O0" debugflags="-g3 -ggdb"
无济于事:((调试器声称它没有符号)
谢谢!
【问题讨论】:
标签: ruby makefile compilation rbenv
我正在尝试使用调试符号从源代码编译 Ruby。我没有使用rbenv或rvm等。
我已经试过了
./configure optflags="-O0" debugflags="-g3 -ggdb"
无济于事:((调试器声称它没有符号)
谢谢!
【问题讨论】:
标签: ruby makefile compilation rbenv
我最近需要在 docker 容器中构建 ruby。这是我所做的:
1.sh:
#!/bin/sh
set -eux
apk add build-base autoconf bison linux-headers git ruby zlib-dev openssl-dev readline-dev libffi-dev gdbm-dev
git clone https://github.com/ruby/ruby
cd ruby
git checkout v2_6_6
autoconf
./configure optflags=-Og
make install
$ docker run --rm -itv $PWD:/app alpine:3.11 sh
/ # /app/1.sh
【讨论】: