FATAL ERROR: Could not find ./share/fill_help_tables.sql

[root@c01 mysql-5.6.33]# /apps/mysql-5.6.33/scripts/mysql_install_db --datadir=/data/my_db --user=mysql
FATAL ERROR: Could not find ./share/fill_help_tables.sql

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

 加上参数--basedir=

问题解决:

[root@c01 mysql-5.6.33]# /apps/mysql-5.6.33/scripts/mysql_install_db --datadir=/data/my_db --basedir=/apps/mysql-5.6.33/ --user=mysql

 

这个错误提示显示编译器找不到`../Utils/quadrotor_msgs/PositionCommand.h`头文件,这可能是因为路径设置不正确导致的。 一种可能的原因是,`PositionCommand.h`文件不在指定的路径下。可以使用以下命令来确认该文件是否存在: ``` ls /home/ros/catkin_ctr/src/ego-planner-swarm/src/uav_simulator/Utils/quadrotor_msgs/PositionCommand.h ``` 如果该命令返回“文件不存在”或类似的错误信息,则需要确认该文件是否存在于指定的路径下。如果该文件存在,可以尝试使用以下方法来解决该问题: 1. 设置正确的路径: 在头文件中使用正确的相对路径来引用`PositionCommand.h`文件。可以尝试使用以下代码来引用该头文件: ``` #include "../Utils/quadrotor_msgs/PositionCommand.h" ``` 这个路径是相对于当前文件的路径。需要确认当前文件和`PositionCommand.h`文件的路径关系。 2. 添加路径到CMakeLists.txt: 可以在`CMakeLists.txt`中添加以下代码,将`quadrotor_msgs`包的路径添加到头文件搜索路径中: ``` include_directories(${catkin_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/Utils /home/ros/catkin_ctr/src/ego-planner-swarm/src/uav_simulator/Utils/quadrotor_msgs) ``` 这个方式可以将指定路径添加到头文件搜索路径中,使编译器能够找到该头文件。需要将路径修改为`PositionCommand.h`文件所在的路径。 需要注意的是,如果使用了第二种方法,需要重新执行`catkin_make`命令来编译整个工作空间。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值