[问题]Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.

本文解决在Mac环境下使用Ruby安装pg库时遇到的问题,提供了通过sudo env ARCHFLAGS=-archx86_64 gem install pg的方法进行安装。

问题:

       ruby  的pg 库 在Mac 下死活装不上

解决方案:

       sudo env ARCHFLAGS="-arch x86_64" gem install pg

renyanpeng@renyanpeng-Legion-R9000P-ARX8:~$ dpkg -l | grep ros-jazzy ii ros-jazzy-action-msgs 2.0.2-2noble.20241227.214418 amd64 Messages and service definitions common among all ROS actions. ii ros-jazzy-action-tutorials-cpp 0.33.5-1noble.20241227.232513 amd64 C++ action tutorial cpp code ii ros-jazzy-action-tutorials-interfaces 0.33.5-1noble.20241227.215054 amd64 Action tutorials action ii ros-jazzy-action-tutorials-py 0.33.5-1noble.20241227.231047 amd64 Python action tutorial code ii ros-jazzy-actionlib-msgs 5.3.5-1noble.20241227.215410 amd64 A package containing some message definitions used in the implementation of ROS 1 actions. ii ros-jazzy-actuator-msgs 0.0.1-4noble.20241227.215717 amd64 ROS 2 message interface for Actuators. ii ros-jazzy-ament-cmake 2.5.3-1noble.20241218.082541 amd64 The entry point package for the ament buildsystem in CMake. ii ros-jazzy-ament-cmake-auto 2.5.3-1noble.20241218.082855 amd64 The auto-magic functions for ease to use of the ament buildsystem in CMake. ii ros-jazzy-ament-cmake-copyright 0.17.1-1noble.20241218.082836 amd64 The CMake API for ament_copyright to check every source file contains copyright reference. ii ros-jazzy-ament-cmake-core 2.5.3-1noble.20241218.075647 amd64 The core of the ament buildsystem in CMake. ii ros-jazzy-ament-cmake-cppcheck 0.17.1-1noble.20241218.082921 amd64 The CMake API for ament_cppcheck to perform static code analysis on C/C++ code using Cppcheck. ii ros-jazzy-ament-cmake-cpplint 0.17.1-1noble.20241218.082938 amd64 The CMa
03-20
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值