8年前

This question was migrated from Super User because it can be answered on Stack Overflow. Migrated
我试图在运行ARMLinux的SynologyDiskStation上从源代码构建Ruby1.9.2。dev工具已经安装,headers和libs也已经安装。运行时未找到./configure pthread

checking for pthread_kill in -lthr... no
checking for pthread_kill in -lpthread... no
checking for pthread_kill in -lpthreads... no
checking for pthread_kill in -lc... no
checking for pthread_kill in -lc_r... no
checking for pthread_kill in -lroot... no
configure: WARNING: "Don't know how to find pthread library on your system -- thread support disabled"
...
configure: error: thread model is missing

没有创建生成文件据我所知,pthread libs存在
> locate pthread
/lib/libpthread.so.0
/volume1/@optware/arm-none-linux-gnueabi/lib/libpthread-2.5.so
/volume1/@optware/arm-none-linux-gnueabi/lib/libpthread.so
/volume1/@optware/arm-none-linux-gnueabi/lib/libpthread.so.0
/volume1/@optware/include/pthread.h
/volume1/@optware/include/bits/pthreadtypes.h
/volume1/@optware/lib/libpthread_nonshared.a
/volume1/homes/Jan/ruby-1.9.2-p290/thread_pthread.c
/volume1/homes/Jan/ruby-1.9.2-p290/thread_pthread.h

我试着告诉configure在哪里可以找到带有--prefix--exec前缀和$libs的libs,但没有成功。我想绕过交叉编译并在机器上构建它。。。
谢谢

最佳答案

解决这个问题的方法是使用另一组libpthread库参见http://forum.synology.com/enu/viewtopic.php?f=90&t=30132(尽管这是对另一个问题的回答,但它确实解决了配置问题)。

关于ruby - 在 ARM 机器上构建ruby 1.9.2时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/7902193/

10-11 22:38