Ad Widget

Collapse

CentOS 4.4 64bit compile error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • H@rry
    Junior Member
    • Jul 2006
    • 24

    #1

    CentOS 4.4 64bit compile error

    I am trying to compile the source rpm of fc6 on CentOS 4.4 x86_64. It alls goes pretty weel, after installing some dependencies (devel packages), but i keep getting stuck on this error:

    Code:
    /usr/bin/ld: cannot find -lmysqlclient
    I searched the forum and found this:



    So it seams to me that this has bin asked before but never have been looked at.

    Can this be resolved?
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Version of ZABBIX? Please post your messages to correct forum.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • H@rry
      Junior Member
      • Jul 2006
      • 24

      #3
      This forum has to do with compiling right? Cookbook...

      but i am trying to compile the latest version of fc6 which is 1.1.7

      Comment

      • H@rry
        Junior Member
        • Jul 2006
        • 24

        #4
        ok i got it to work. this is what i did:

        I installed the rpm with: rpm -ivh zabbix-1.1.7-1.fc6.src.rpm
        Then i went to /usr/src/redhat/SOURCES
        unzipped the tar.gz: tar -zxvf zabbix-1.1.7.tar.gz
        go into the directory: cd zabbix-1.1.7
        edit the configure file accordeing to the forum link i gave in my first post
        removed zabbix-1.1.7.tar.gz
        zipped the folder: tar -cvf zabbix-1.1.7.tar.gz zabbix-1.1.7/
        go to the SPEC file: cd ../SPECS
        build form the spec file: rpmbuild -bb zabbix.spec

        and the RPM packages were build inside the /usr/src/redhat/RPMS folder

        Comment

        • H@rry
          Junior Member
          • Jul 2006
          • 24

          #5
          ok one minor detail, the %{_sysconfdir} of CentOS is pointing to /usr/etc and not /etc, anyone noticed this before? And how did you resolve this?

          Comment

          • H@rry
            Junior Member
            • Jul 2006
            • 24

            #6
            solved!

            i found the solution, and posted it on the CentOS forums.



            so for anyone wanting to compile 64-bit Zabbix RPM's, its as easy as can be. (If only the little addition to the configure script can be made?) The addition in the configure script is no longer needed after this!!!
            I simply ran:
            Code:
            rpmbuild --rebuild zabbix-1.1.7-1.fc6.src.rpm
            Life can be so wonderfull!!


            [edit]configure addition[/edit]
            Last edited by H@rry; 23-04-2007, 12:12.

            Comment

            Working...