[MySQL] Package ‘libtirpc‘, required by ‘virtual:world‘, not found
Package ‘libtirpc’, required by ‘virtual:world’, not found– Found PkgConfig: /usr/bin/pkg-config (found version “1.8.1”)– Checking for module ‘libtirpc’– Package ‘libtirpc’, required by ‘virtual:world’, not foundCMake Error at cmake/rpc.cmake:76 (MESSAGE):Could not find rpc/rpc.h in /usr/include or /usr/include/tirpcCall Stack (most recent call first):rapid/plugin/group_replication/configure.cmake:60 (MYSQL_CHECK_RPC)rapid/plugin/group_replication/CMakeLists.txt:25 (INCLUDE)– Configuring incomplete, errors occurred!You can build and installlibtirpc-devfrom source if you prefer not to use your distribution’s package manager or need a specific version. Here’s how you can do it:Steps to Build libtirpc from Source1.Download the Source CodeYou can get the latest source from the official repository or via Git:wgethttps://sourceforge.net/projects/libtirpc/files/libtirpc/1.3.3/libtirpc-1.3.3.tar.bz2tar-xjflibtirpc-1.3.3.tar.bz2cdlibtirpc-1.3.32.Configure the BuildRun the following commands to configure the build:sudoapt-getinstallautoconf ./bootstrap ./configure--prefix/usr/local --disable-gssapiThe--prefix/usr/localoption installs the library and headers in standard system locations.3.Compile and Installmakesudomakeinstall4.Update the Dynamic Linker CacheAfter installation, update the dynamic linker cache:sudoldconfig5.Verify InstallationCheck if the header file and library are installed:ls/usr/include/tirpc/rpc/rpc.hls/usr/lib/libtirpc.*6.Re-run CMakeNow, try re-running CMake for your project:rm-rfCMakeCache.txt CMakeFiles/ cmake.TroubleshootingIf you encounter permission issues, usesudowhere necessary.If the build fails, check for missing dependencies (likeautoconf,automake,libtool, orgcc).If you want to install to a custom location (not/usr), use--prefix/your/custom/pathand ensure your build system can find the headers and libraries.
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2416154.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!