Ad Widget

Collapse

Problems with zabbix configure (cannot find ld)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MyckyMyck
    Junior Member
    • Feb 2021
    • 3

    #1

    Problems with zabbix configure (cannot find ld)

    Hi everyone,
    I hope you all do fine !

    I've got some problems with my zabbix configure.

    When running ./configure on my serveur, i got an exit 1.

    [root@myHostname zabbix-4.0.27]# ./configure
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    configure: Configuring Zabbix 4.0.27
    checking whether make sets $(MAKE)... (cached) yes
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking for cc... cc
    checking whether the C compiler works... no
    configure: error: in `/opt/zabbix-4.0.27':
    configure: error: C compiler cannot create executables
    See `config.log' for more details


    I put attach to this message my config.log which details the error : collect2: fatal error: cannot find 'ld'.

    I don't understand were the 'ld'come from ? Could anyone help ? Do you have solutions or clues ?
    Attached Files
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Is there a reason why you're attempting to compile your own Zabbix install, rather than using the official packages? Are you on a distro or version that's not supported by Zabbix?

    It appears you're using RHEL 7.x or one of its respins (CentOS 7.x, OEL 7.x, ScientificLinux 7.x, etc.). RHEL and its respins are officially supported by Zabbix packages, so you might be better off just using those, if you can.

    The linker (ld) is in the 'binutils' packages on RHEL 7.x. Make sure that package is installed, if you're going to proceed with building your own binaries.

    Comment

    • MyckyMyck
      Junior Member
      • Feb 2021
      • 3

      #3
      Hi ! Thanks for the answer !
      Yes, I'm installing zabbix from source, cause my server don't have the access to 'yum' and 'apt' command.

      More infos :
      - RHEL 7.6
      - Zabbix 4.0
      - Use this doc (https://www.zabbix.com/documentation...lation/install)
      - Install lib gcc 4.8.5-36 cause missing cc in first place
      - Got binutils 2.27-34.base

      I try to change the user who launched the configure from root to zabbix
      But i still got my problem.

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        I always recommend not running configure as root. Except in extremely rare circumstances (which don't apply to the Zabbix agent), the configure and compile process doesn't require root privileges, so it's better to use a normal account. Using the 'zabbix' user is fine, or running it as your own non-privileged account is also fine. Only when you get to the install step do you need to elevate privileges, assuming you're installing into system directory.

        If you have binutils installed, you should have /usr/bin/ld too.

        Do you have an updated config.log (changing the name to configLog.txt when attaching it here like you did previously is fine)? There might be some other thing missing now.

        RHEL doesn't use apt, that's for Linux distros that are based on Debian and the .deb package format. I don't know how you can get a RHEL 7.6 server without having yum installed, but even without yum, you can use the pre-built package. You just need to download it with a web browser and then copy it to the system(s) where it should be installed. I can give you other options for installation that don't use yum directly.

        Comment

        Working...