設置 | 登錄 | 註冊

目前共有5篇帖子。

libray_api.so

1樓 巨大八爪鱼 2026-5-20 15:12
C:\Users\qwert2180\AppData\Local\Programs\Python\Python310\Lib\site-packages\ray\cpp\lib\libray_api.so
2樓 巨大八爪鱼 2026-5-20 15:13

libray和library这个单词只相差一个字母。

3樓 巨大八爪鱼 2026-5-25 10:27
oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$ file C:/Users/qwert2180/AppData/Local/Programs/Python/Python310/Lib/site-packages/ray/cpp/lib/libray_api.so
C:/Users/qwert2180/AppData/Local/Programs/Python/Python310/Lib/site-packages/ray/cpp/lib/libray_api.so: PE32+ executable for MS Windows 6.00 (DLL), x86-64, 6 sections

oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$ file C:/cygwin64/lib/p11-kit-proxy.so
C:/cygwin64/lib/p11-kit-proxy.so: symbolic link to ../bin/cygp11-kit-0.dll

oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$ file C:/cygwin64/bin/cygp11-kit-0.dll
C:/cygwin64/bin/cygp11-kit-0.dll: PE32+ executable for MS Windows 5.02 (DLL), x86-64, 11 sections

oct1158@DESKTOP-UCV8LC8 /cygdrive/d/Code/C++/Ray/first
$


这说明,libray_api.so就是一个dll文件(仅支持Vista以上系统)。

4樓 巨大八爪鱼 2026-5-25 15:39

Undefined reference to `ray::Init()’

https://discuss.ray.io/t/undefined-reference-to-ray-init/23554/2


Ray’s C++ API is not supported on Windows (including Cygwin), which is the root cause of your build and runtime errors. The official documentation and codebase state that the C++ API is experimental and only supported on Linux. Attempting to use it on Windows (even via Cygwin) will result in linker errors and segmentation faults, as you observed (source, source).

If you need to use Ray’s C++ API, you must use a Linux environment (native or via WSL2). There is no workaround for Windows at this time. Would you like more detail on setting up Ray C++ on Linux?

Sources:

https://github.com/ray-project/ray/blob/master/python/ray/scripts/scripts.py
https://discuss.ray.io/t/c-api-running-example-and-cluster-mode-test-segfaults-on-mac-os/1665

Hint: Mention @RunLLM in the post for followups.

5樓 巨大八爪鱼 2026-5-25 15:40
很遗憾,Ray C++不支持Windows操作系统。

內容轉換:

回覆帖子
內容:
用戶名: 您目前是匿名發表。
驗證碼:
看不清?換一張