错误在arm机器上构建ruby 1.9.2

时间:2011-10-25 14:16:05

标签: ruby configure arm

我正在尝试在运行arm-linux的synology diskstation上从源代码构建ruby 1.9.2。安装了dev-tools,头文件和库也是如此。当我运行时./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

并且没有创建make文件。据我所知,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

我试过告诉配置在哪里找到带有--prefix --exec-prefix和$ LIBS的lib但是无济于事。我想绕过一个交叉编译并在机器上构建它... 感谢

1 个答案:

答案 0 :(得分:2)

解决此问题的方法是使用另一组libpthread库。请参阅http://forum.synology.com/enu/viewtopic.php?f=90&t=30132(虽然这是另一个问题的答案,但确实解决了配置问题。)