Bobcares

Configure: Error: iconv does not support errno | Solution

PDF Header PDF Footer

Learn how to fix “configure: error: iconv does not support errno” in DirectAdmin CustomBuild. Our DirectAdmin Support team is here to answer queries and concerns.

How to Fix “configure: error: iconv does not support errno” in DirectAdmin CustomBuild

How to Fix “configure: error: iconv does not support errno” in DirectAdmin CustomBuildRecently, one of our customers ran into the following error when compiling software like PHP in the DirectAdmin custom build environment:

configure: error: iconv does not support errno

According to our Experts, this error arises during the configuration phase of building software that depends on the `iconv` library. If you’re new to setting up DirectAdmin, our setup procedure guide provides a solid foundation to avoid such pitfalls.

Today, we will examine the causes behind this error and walk through the steps to fix it.

Understanding the Error

This error is triggered during the configuration checks performed before compilation. Key checks include:

  • Checking if iconv is part of glibc:

    This verifies that the iconv library is compatible with the GNU C Library.

  • Checking if iconv supports errno:

    This checks if the iconv implementation can set the errno variable, which is crucial for proper error reporting.

The failure of the second check leads to the error message.

Common Causes

  • The system may not have `libiconv` installed, or the installed version lacks support for `errno`.
  • If the compiler or linker can’t find the correct version of `iconv`, it may fall back to an unsupported one.
  • A corrupted or outdated DirectAdmin build environment can result in various compilation failures. Knowing how to fix permissions in DirectAdmin can also help you troubleshoot related issues.
  • Incorrect flags may prevent the configuration script from detecting necessary features.

How to Fix the Error

  1. First, make sure the correct version of `libiconv` is installed:
    • For Debian/Ubuntu:
      sudo apt-get install libiconv-dev
    • For CentOS/RHEL:
      sudo yum install libiconv-devel
  2. Also, ensure the system uses the correct `libiconv` version by updating the library path:
    export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
  3. Furthermore, reset and update DirectAdmin’s build environment to avoid any cached errors:

    cd /usr/local/directadmin/custombuild
    ./build clean
    ./build update

    You may also want to review how other configurations, such as SMTP setup in DirectAdmin, are handled, as some misconfigurations can impact builds.

  4. Once the dependencies and environment are fixed, rebuild PHP:
    ./build php
  5. Then, ensure all required development libraries are present. For example:
    • For Debian/Ubuntu:
      sudo apt-get install libxml2-dev libxslt1-dev
    • For CentOS/RHEL:
      sudo yum install libxml2-devel libxslt-devel
  6. If the error persists, examine the build logs for more specific messages:
    tail -n 50 /usr/local/directadmin/custombuild/build/php.log

    You can also look into editing .htaccess files via DirectAdmin to fine-tune server behavior post-installation.

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

By following the steps above, we can fix the “iconv does not support errno” error and proceed with a clean PHP build in the DirectAdmin environment. This ensures a stable hosting environment and smooth software updates.

In brief, our Support Experts demonstrated how to fix “configure: error: iconv does not support errno” in DirectAdmin CustomBuild.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!