Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Compiling on CentOS

  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts

    Compiling on CentOS

    I compile libcod, i and i have error:
    Code:
    /usr/bin/ld: skipping incompatible ./vendors/lib/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /lib/../lib/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/../lib/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib64/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /lib/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: skipping incompatible /usr/lib/libmysqlclient.so when searching for -lmysqlclient
    /usr/bin/ld: cannot find -lmysqlclient
    Help)

  2. #2
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

  3. #3
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Ni3ls no! This other problem!

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by maxdamage99 View Post
    Ni3ls no! This other problem!
    No, it is the same problem.
    The issue is that you are linking a 64-bit library to a 32-bit library.

    Edit: Do you have installed mysql-devel.i686? What is the output of 'mysql_config --cflags --libs'?
    PHP Code:
    mysql_config --cflags --libs 
    Have you tried to using the vendors/lib directory with the link command?
    PHP Code:
    ln -/usr/lib/mysqlvendors/lib 
    Last edited by Mitch; 29th March 2016 at 21:02.

  5. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Just copy-pasted the EXACT contents of that tutorial in a fresh install of centos 6 x64. Works fine.

    Hint: try to follow tutorials completely, especially the ones that allow you to just copy paste commands into your ssh session.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  6. #6
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    Centos x64
    Vendors/lib -> /usr/lib64/mysql
    mysql-devel.i686 - last version
    I remove some bugs and have last (i hope that the last) error:
    Code:
    /usr/bin/ld: cannot find -lmysqlclient

  7. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    You havent even specified wether you're running centos 6 or 7 yet...
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  8. #8
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    458
    Thanks
    79
    Thanked 122 Times in 101 Posts
    CentOS-7-x86_64

  9. #9
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    aaaaand
    in the link niels posted, in which mitch replied to your OTHER libcod compile questions, there's this:
    Quote Originally Posted by Mitch View Post
    Edit: for CentOS 7 you need: mariadb-server and mariadb-devel.i686.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  10. #10
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    For everyone's entertainment, a fresh install of centos 7 x64, going through the commands as posted in mitch's tutorial 1 by 1, resulting in a fully compiled libcod.so:

    click here
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  11. The Following User Says Thank You to IzNoGoD For This Useful Post:

    kung foo man (31st March 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •