libxml/tree.h no such file or directory

本文详细介绍了在Xcode中添加libxml2库的步骤,并指导如何配置HeaderSearchPaths等关键设置以确保项目正常运行。通过几个简单的步骤,开发者可以轻松解决在集成libxml2库时遇到的问题。

Works for me. Remember to add the library in Link Binary en Build Phases Section of the target project. pic2 pic1


You need to put all the libxml headers on the include path. For Xcode do this by adding/usr/include/libxml2 to the header paths (that will pass -I/usr/include/libxml2 to the c compiler)

This is in the build settings tab in Search Paths -> Header Search Paths

enter image description here


There's just a few simple steps:

  • Copy the RaptureXML/RaptureXML folder into your own project and import "RXMLElement.h" somewhere (e.g., your PCH file).
  • Link in libz.dylib to your target.
  • Link in libxml2.dylib to your target.
  • In your build settings, for the key "Header Search Paths", add "$(SDK_DIR)"/usr/include/libxml2

RaptureXML supports ARC. In fact, it does so without a branch. The code automatically detects if ARC is being used in your project and compiles accordingly. You are free to use any version of LLVM or gcc as well! (Though you should be using LLVM by now.)


Adding libxml2 in Xcode 4.3.x

Adding libxml2 is a big, fat, finicky pain in the ass. If you're going to do it do it before you get too far in building your project.

Here's how.

Target settings

Click on your target (not your project) and select "Build Phases". Click on the reveal triangle titled "Link Binary With Libraries". Click on the "+" to add a library. Scroll to the bottom of the list and select "libxml2.dylib". That adds the libxml2 library 2 your project… but wait.

Project settings

Now you have to tell your project where to look for it three more times.

Select the "Build Settings tab". Scroll down to the "Linking" section. Under your project's columns double click on the "Other Linker Flags" row. Click the "+" and add "-lxml2" to the list.

Still more.

In the same tab, scroll down to the "Search Paths" section. Under your project's column in the"Framework Search Paths" row add "/usr/lib/libxml2.dylib".

In the "Header Search Paths" AND the "User Header Search Paths" row add"$(SDKROOT)/usr/include/libxml2". In those last two cases make sure that path is entered in Debug AND Release.

Then. Under the "Product" Menu select "Clean".

Then, if I were you (and let's face it I probably am) I'd quit Xcode and walk away. When you come back and launch you should be good to go.


[yuhuanxi@localhost libxml2-2.9.1]$ sudo make install make install-recursive make[1]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1” Making install in include make[2]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include” Making install in libxml make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include/libxml” make[4]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include/libxml” make[4]: 对“install-exec-am”无需做任何事。 /usr/bin/mkdir -p '/opt/libxml2-2.9.1/include/libxml2/libxml' /usr/bin/install -c -m 644 SAX.h entities.h encoding.h parser.h parserInternals.h xmlerror.h HTMLparser.h HTMLtree.h debugXML.h tree.h list.h hash.h xpath.h xpathInternals.h xpointer.h xinclude.h xmlIO.h xmlmemory.h nanohttp.h nanoftp.h uri.h valid.h xlink.h xmlversion.h DOCBparser.h catalog.h threads.h globals.h c14n.h xmlautomata.h xmlregexp.h xmlmodule.h xmlschemas.h schemasInternals.h xmlschemastypes.h xmlstring.h xmlunicode.h xmlreader.h relaxng.h dict.h '/opt/libxml2-2.9.1/include/libxml2/libxml' /usr/bin/install -c -m 644 SAX2.h xmlexports.h xmlwriter.h chvalid.h pattern.h xmlsave.h schematron.h '/opt/libxml2-2.9.1/include/libxml2/libxml' make[4]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include/libxml” make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include/libxml” make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include” make[4]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include” make[4]: 对“install-exec-am”无需做任何事。 make[4]: 对“install-data-am”无需做任何事。 make[4]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include” make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include” make[2]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/include” Making install in . make[2]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1” make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1” /usr/bin/mkdir -p '/opt/libxml2-2.9.1/lib' /bin/sh ./libtool --mode=install /usr/bin/install -c libxml2.la '/opt/libxml2-2.9.1/lib' libtool: install: /usr/bin/install -c .libs/libxml2.so.2.9.1 /opt/libxml2-2.9.1/lib/libxml2.so.2.9.1 libtool: install: (cd /opt/libxml2-2.9.1/lib && { ln -s -f libxml2.so.2.9.1 libxml2.so.2 || { rm -f libxml2.so.2 && ln -s libxml2.so.2.9.1 libxml2.so.2; }; }) libtool: install: (cd /opt/libxml2-2.9.1/lib && { ln -s -f libxml2.so.2.9.1 libxml2.so || { rm -f libxml2.so && ln -s libxml2.so.2.9.1 libxml2.so; }; }) libtool: install: /usr/bin/install -c .libs/libxml2.lai /opt/libxml2-2.9.1/lib/libxml2.la libtool: install: /usr/bin/install -c .libs/libxml2.a /opt/libxml2-2.9.1/lib/libxml2.a libtool: install: chmod 644 /opt/libxml2-2.9.1/lib/libxml2.a libtool: install: ranlib /opt/libxml2-2.9.1/lib/libxml2.a libtool: finish: PATH="/sbin:/bin:/usr/sbin:/usr/bin:/sbin" ldconfig -n /opt/libxml2-2.9.1/lib ---------------------------------------------------------------------- Libraries have been installed in: /opt/libxml2-2.9.1/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- /usr/bin/mkdir -p '/opt/libxml2-2.9.1/bin' /bin/sh ./libtool --mode=install /usr/bin/install -c xmllint xmlcatalog '/opt/libxml2-2.9.1/bin' libtool: install: /usr/bin/install -c .libs/xmllint /opt/libxml2-2.9.1/bin/xmllint libtool: install: /usr/bin/install -c .libs/xmlcatalog /opt/libxml2-2.9.1/bin/xmlcatalog /usr/bin/mkdir -p '/opt/libxml2-2.9.1/bin' /usr/bin/install -c xml2-config '/opt/libxml2-2.9.1/bin' /usr/bin/mkdir -p '/opt/libxml2-2.9.1/lib' /usr/bin/install -c -m 644 xml2Conf.sh '/opt/libxml2-2.9.1/lib' /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1 /usr/bin/install -c -m 0644 ./Copyright /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1 /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/examples /usr/bin/install -c -m 0644 ./xmllint.c /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/examples /usr/bin/install -c -m 0644 ./testSAX.c /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/examples /usr/bin/install -c -m 0644 ./testHTML.c /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/examples /usr/bin/install -c -m 0644 ./testXPath.c /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/examples /usr/bin/mkdir -p '/opt/libxml2-2.9.1/share/aclocal' /usr/bin/install -c -m 644 libxml.m4 '/opt/libxml2-2.9.1/share/aclocal' /usr/bin/mkdir -p '/opt/libxml2-2.9.1/share/man/man1' /usr/bin/install -c -m 644 xml2-config.1 '/opt/libxml2-2.9.1/share/man/man1' /usr/bin/mkdir -p '/opt/libxml2-2.9.1/share/man/man3' /usr/bin/install -c -m 644 libxml.3 '/opt/libxml2-2.9.1/share/man/man3' /usr/bin/mkdir -p '/opt/libxml2-2.9.1/lib/pkgconfig' /usr/bin/install -c -m 644 libxml-2.0.pc '/opt/libxml2-2.9.1/lib/pkgconfig' make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1” make[2]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1” Making install in doc make[2]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc” Making install in . make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc” make[4]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc” make[4]: 对“install-exec-am”无需做任何事。 /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html /usr/bin/install -c -m 0644 ./xml.html ./encoding.html ./FAQ.html ./structure.gif ./DOM.gif ./smallfootonly.gif ./redhat.gif ./libxml.gif ./w3c.png ./Libxml2-Logo-180x168.gif ./Libxml2-Logo-90x34.gif /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/html /usr/bin/install -c -m 0644 ./html/*.html /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/html /usr/bin/install -c -m 0644 ./html/*.png /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/html /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/tutorial /usr/bin/install -c -m 0644 ./tutorial/*.* \ /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/tutorial /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/tutorial/images /usr/bin/install -c -m 0644 ./tutorial/images/*.* \ /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/tutorial/images /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/tutorial/images/callouts /usr/bin/install -c -m 0644 ./tutorial/images/callouts/*.* \ /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html/tutorial/images/callouts /usr/bin/mkdir -p '/opt/libxml2-2.9.1/share/man/man1' /usr/bin/install -c -m 644 xmllint.1 xmlcatalog.1 '/opt/libxml2-2.9.1/share/man/man1' make[4]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc” make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc” Making install in devhelp make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/devhelp” make[4]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/devhelp” make[4]: 对“install-exec-am”无需做任何事。 /usr/bin/mkdir -p '/opt/libxml2-2.9.1/share/gtk-doc/html/libxml2' /usr/bin/install -c -m 644 libxml2.devhelp general.html index.html libxml2-c14n.html libxml2-catalog.html libxml2-chvalid.html libxml2-debugXML.html libxml2-dict.html libxml2-DOCBparser.html libxml2-encoding.html libxml2-entities.html libxml2-globals.html libxml2-hash.html libxml2-HTMLparser.html libxml2-HTMLtree.html libxml2-list.html libxml2-nanoftp.html libxml2-nanohttp.html libxml2-parser.html libxml2-parserInternals.html libxml2-pattern.html libxml2-relaxng.html libxml2-SAX2.html libxml2-SAX.html libxml2-schemasInternals.html libxml2-schematron.html libxml2-threads.html libxml2-tree.html libxml2-uri.html libxml2-valid.html libxml2-xinclude.html libxml2-xlink.html libxml2-xmlautomata.html libxml2-xmlerror.html libxml2-xmlexports.html libxml2-xmlIO.html libxml2-xmlmemory.html libxml2-xmlmodule.html libxml2-xmlreader.html libxml2-xmlregexp.html '/opt/libxml2-2.9.1/share/gtk-doc/html/libxml2' /usr/bin/install -c -m 644 libxml2-xmlsave.html libxml2-xmlschemas.html libxml2-xmlschemastypes.html libxml2-xmlstring.html libxml2-xmlunicode.html libxml2-xmlversion.html libxml2-xmlwriter.html libxml2-xpath.html libxml2-xpathInternals.html libxml2-xpointer.html home.png left.png right.png up.png style.css '/opt/libxml2-2.9.1/share/gtk-doc/html/libxml2' make[4]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/devhelp” make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/devhelp” Making install in examples make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/examples” make[4]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/examples” make[4]: 对“install-exec-am”无需做任何事。 /usr/bin/mkdir -p /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html /usr/bin/install -c -m 0644 ./*.html ./*.c ./*.xml ./*.xsl ./*.res /opt/libxml2-2.9.1/share/doc/libxml2-2.9.1/html make[4]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/examples” make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc/examples” make[2]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/doc” Making install in example make[2]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/example” make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/example” make[3]: 对“install-exec-am”无需做任何事。 make[3]: 对“install-data-am”无需做任何事。 make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/example” make[2]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/example” Making install in xstc make[2]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/xstc” make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/xstc” make[3]: 对“install-exec-am”无需做任何事。 make[3]: 对“install-data-am”无需做任何事。 make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/xstc” make[2]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/xstc” Making install in python make[2]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/python” make install-recursive make[3]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/python” Making install in . make[4]: 进入目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/python” CC libxml.lo libxml.c:14:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. make[4]: *** [libxml.lo] 错误 1 make[4]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/python” make[3]: *** [install-recursive] 错误 1 make[3]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/python” make[2]: *** [install] 错误 2 make[2]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1/python” make[1]: *** [install-recursive] 错误 1 make[1]: 离开目录“/home/yuhuanxi/桌面/postgres/libxml2-2.9.1” make: *** [install] 错误 2 [yuhuanxi@localhost libxml2-2.9.1]$ 给出以上报错的解决方案
最新发布
10-10
<think>我们已经在之前的回答中解决了Windows上安装Nokogiri的主要问题,但用户现在遇到了一个更具体的错误:`conftest.c:5:10: fatal error: libxml/parser.h: No such file or directory`。 这个错误说明在编译Nokogiri时找不到libxml2的头文件(parser.h是libxml2的一部分)。在Windows上,这通常是因为没有正确安装或配置libxml2开发库。 回顾之前的解决方案,我们已经要求用户安装MSYS2并安装libxml2,但可能用户没有正确安装,或者安装后头文件路径没有包含在编译器的搜索路径中。 因此,我们需要确保: 1. 已经通过MSYS2安装了libxml2开发包。 2. 在安装Nokogiri时,正确指定了libxml2头文件的路径(因为Windows上默认不会在全局包含路径中)。 具体步骤: 步骤1:确认MSYS2已安装并更新 如果还没有安装MSYS2,请按照之前的方法安装。然后更新: pacman -Syu 步骤2:安装libxml2和libxslt开发包 在MSYS2终端(注意:使用MINGW64终端)中执行: pacman -S mingw-w64-x86_64-libxml2 pacman -S mingw-w64-x86_64-libxslt 步骤3:设置环境变量或配置bundle指定头文件和库文件路径 由于Windows上的Ruby安装可能不知道MSYS2的路径,我们需要在安装Nokogiri时传递这些路径。 方法一:通过bundle配置(推荐) bundle config build.nokogiri --use-system-libraries \ --with-xml2-include="C:/msys64/mingw64/include/libxml2" \ --with-xml2-lib="C:/msys64/mingw64/lib" \ --with-xslt-include="C:/msys64/mingw64/include" \ --with-xslt-lib="C:/msys64/mingw64/lib" 注意:上面的路径是默认安装路径,如果你的MSYS2安装在其他位置,请相应调整。 方法二:在安装命令中直接指定(适用于gem install) gem install nokogiri -v '1.16.8' --platform=ruby -- \ --use-system-libraries \ --with-xml2-include="C:/msys64/mingw64/include/libxml2" \ --with-xml2-lib="C:/msys64/mingw64/lib" \ --with-xslt-include="C:/msys64/mingw64/include" \ --with-xslt-lib="C:/msys64/mingw64/lib" 步骤4:清除并重试 如果之前安装失败,建议先清除: bundle clean --force 或者如果是单独安装,先卸载: gem uninstall nokogiri 然后再次运行bundle install或gem install。 步骤5:如果仍然失败,检查路径是否正确 确保指定的路径下确实存在libxml2的头文件(如parser.h)。在`C:/msys64/mingw64/include/libxml2/libxml/parser.h`应该存在。 步骤6:考虑使用MSYS2环境进行安装 有时候,在MSYS2的MINGW64终端中执行安装命令,可以确保环境变量设置正确。请尝试在MSYS2 MINGW64终端中运行你的bundle或gem命令。 步骤7:如果还是不行,尝试设置环境变量INCLUDE和LIB 在Windows上,你可以临时设置环境变量,让编译器找到头文件和库: set INCLUDE=C:\msys64\mingw64\include\libxml2;%INCLUDE% set LIB=C:\msys64\mingw64\lib;%LIB% 然后再运行安装命令。 注意:如果使用的是PowerShell,设置环境变量的命令不同: $env:INCLUDE = "C:\msys64\mingw64\include\libxml2;" + $env:INCLUDE $env:LIB = "C:\msys64\mingw64\lib;" + $env:LIB 步骤8:如果上述步骤都无效,可能是你的项目使用了不同于MSYS2的编译环境(比如Visual Studio),请确保没有混合使用不同的工具链。 相关问题: §§相关问题§§ 1. 如何在Windows上检查libxml2是否正确安装? 2. 为什么在MSYS2终端中安装Nokogiri成功,但在其他终端中运行失败? 3. 如何为Ruby on Rails项目配置Nokogiri的Windows原生扩展? </think>### 解决 Windows 安装 Nokogiri 时出现 `libxml/parser.h` 缺失错误的完整指南 当在 Windows 系统安装 Nokogiri 1.16.8 时遇到 `fatal error: libxml/parser.h: No such file or directory` 错误,表明编译过程中无法找到 libxml2 的头文件。以下是系统化的解决方案: --- ### 🔧 核心解决步骤 #### 1. **安装必需的开发库** 在 **MSYS2 MinGW 64-bit 终端**中执行: ```bash # 更新软件包数据库 pacman -Syu # 安装 libxml2 和 libxslt 开发包 pacman -S mingw-w64-x86_64-libxml2 pacman -S mingw-w64-x86_64-libxslt ``` #### 2. **配置 Bundler 使用系统库** ```bash # 设置 Nokogiri 编译参数 bundle config build.nokogiri --use-system-libraries \ --with-xml2-include="C:/msys64/mingw64/include/libxml2" \ --with-xml2-lib="C:/msys64/mingw64/lib" \ --with-xslt-include="C:/msys64/mingw64/include" \ --with-xslt-lib="C:/msys64/mingw64/lib" ``` > 💡 路径说明: > - 默认 MSYS2 安装路径为 `C:/msys64` > - 检查 `parser.h` 是否存在:`C:/msys64/mingw64/include/libxml2/libxml/parser.h` #### 3. **清除缓存并重试安装** ```bash # 清除旧编译缓存 bundle clean --force # 详细模式安装(查看具体错误) bundle install --verbose ``` --- ### ⚠️ 进阶故障排除 #### **情景1:路径包含空格或特殊字符** 若 MSYS2 安装在 `Program Files` 等含空格路径: 1. 重装 MSYS2 到简单路径(如 `C:\msys64`) 2. 更新 Bundler 配置中的路径: ```bash bundle config build.nokogiri --with-xml2-include="D:/dev/msys64/mingw64/include/libxml2" ``` #### **情景2:头文件路径未加入编译器搜索路径** 手动添加环境变量(CMD/PowerShell): ```cmd :: 添加头文件搜索路径 set INCLUDE=C:\msys64\mingw64\include\libxml2;%INCLUDE% :: 添加库文件搜索路径 set LIB=C:\msys64\mingw64\lib;%LIB% ``` ```powershell # PowerShell 等价命令 $env:INCLUDE = "C:\msys64\mingw64\include\libxml2;" + $env:INCLUDE $env:LIB = "C:\msys64\mingw64\lib;" + $env:LIB ``` #### **情景3:MSVC 与 MinGW 工具链冲突** 对于使用 Visual Studio 的用户: 1. 确保在 **MSYS2 终端**而非 VS 命令提示符执行安装 2. 检查是否误设 `INCLUDE` 环境变量指向损坏路径: ```cmd echo %INCLUDE% # 应包含 MSYS2 路径而非失效的 VS 路径 ``` 若有类似 `C:\Program Files (x86)\Windows Kits\...` 的失效路径,需清理环境变量[^1][^2][^3] --- ### ✅ 验证成功安装 ```bash ruby -e "require 'nokogiri'; puts Nokogiri::VERSION" # 输出 1.16.8 即成功 ``` > **关键提示**: > - 所有操作必须在 **MSYS2 MinGW 64-bit 终端**中进行(非 CMD/PowerShell)[^1] > - 确保 Ruby 版本 ≥ 2.7:`ruby -v` > - 若使用 RVM/rbenv,先切换至目标 Ruby 环境再操作 --- ###
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值