CentOS: 解决 "configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config" 错误
The error message suggests that the `net-snmp-config` command is not found or is not in the expected directory. \n\nTo resolve this issue, you can try the following steps:\n\n1. Make sure that the `net-snmp` package is installed on your CentOS system. You can install it using the following command:\n \nsudo yum install net-snmp net-snmp-utils\n \n\n2. Check the location of the `net-snmp-config` command. It should be in the `/usr/bin/` directory. You can verify this by running the following command:\n \nwhich net-snmp-config\n \n\n3. If the `net-snmp-config` command is not found or located in a different directory, you may need to add the correct directory to your system's `PATH` environment variable. You can do this by adding the following line to your shell configuration file (e.g., `~/.bashrc` or `~/.bash_profile`):\n \nexport PATH="\/usr\/bin:$PATH"\n \n\n4. After making the changes, save the file and run the following command to reload the shell configuration:\n \nsource ~/.bashrc\n \n\n5. Now, try running the `./configure` command again and see if the error persists.\n\nIf the above steps do not resolve the issue, you may need to provide more information about your specific configuration and the steps you have taken so far.
原文地址: https://www.cveoy.top/t/topic/p3NN 著作权归作者所有。请勿转载和采集!