Results 1 to 6 of 6

Thread: /usr/bin/ld: cannot find -lsasl2 when trying to install exim 4.77 on freebsd 7.4

  1. #1
    Join Date
    Nov 2008
    Posts
    41

    /usr/bin/ld: cannot find -lsasl2 when trying to install exim 4.77 on freebsd 7.4

    gcc demime.c
    gcc bmi_spam.c
    gcc spf.c
    gcc srs.c
    gcc dcc.c
    gcc version.c
    gcc -o exim
    /usr/bin/ld: cannot find -lsasl2
    *** Error code 1

    Stop in /usr/local/directadmin/custombuild/exim-4.77/build-FreeBSD-i386.
    *** Error code 1

    Stop in /usr/local/directadmin/custombuild/exim-4.77.
    -e \n*** The make has failed, would you like to try to make again? (y,n):




    how to fix?

  2. #2
    Join Date
    Jun 2007
    Location
    California
    Posts
    498
    I've moved your thread; it may get better luck from FreeBSD users here.

    Jeff
    Serving the DirectAdmin community since 2003
    See Additional posts under user nobaloney

    directadmin@nobaloney.net +1 951 643-5345
    Contract DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    http://www.nobaloney.net
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  3. #3
    Join Date
    May 2005
    Location
    Montreal, QC, Canada
    Posts
    112
    From what I understand, you are missing the Cyrus-SASL package.

    Run:
    # pkg_add -r cyrus-sasl2

    Information was taken from this DA KB article.
    FreeBSD <3

  4. #4
    Join Date
    May 2008
    Location
    Bulgaria
    Posts
    973
    Same here... Cyrus-sasl2 is installed:

    Code:
    ...
    ===>   Running ldconfig
    /sbin/ldconfig -m /usr/local/lib
    ===>   Registering installation for cyrus-sasl-2.1.25_2
    
    # pkg_version -v | grep sasl
    cyrus-sasl-2.1.25_2                 =   up-to-date with port
    
    #  cd /usr/local/directadmin/custombuild
    
    # ./build exim
    ...
    gcc version.c
    gcc -o exim
    /usr/bin/ld: cannot find -lsasl2
    *** Error code 1
    
    Stop in /usr/local/directadmin/custombuild/exim-4.77/build-FreeBSD-amd64.
    *** Error code 1
    
    Stop in /usr/local/directadmin/custombuild/exim-4.77.
    -e \n*** The make has failed, would you like to try to make again? (y,n):
    I have no idea how to proceed further... I am on freebsd 9 amd64. Fresh install. Only exim fails to compile.

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,750
    Hello,

    What do you see if you run

    Code:
    strace /usr/bin/ld -lsasl2
    ?

    Try to do

    Code:
    ln -s /usr/local/lib/libsasl2.so /usr/lib/libsasl2.so
    and run

    Code:
    /usr/bin/ld -lsasl2
    Will it help you?
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  6. #6
    Join Date
    May 2008
    Location
    Bulgaria
    Posts
    973
    I thought I replied to the topic when I fixed it, but it disappeared.

    Here is what I did to resolve the problem:

    1. I deinstalled Perl 5.8
    2. I installed Perl 5.14
    3. I added p5-ExtUtils-Embed
    4. Compiled exim like a charm.

    Should be some perl related problem... maybe.

Similar Threads

  1. I need to change SpamAssassin options, but can't find them in DA install...
    By csgo in forum General Technical Discussion & Troubleshooting
    Replies: 2
    Last Post: 03-17-2012, 07:52 PM
  2. Replies: 2
    Last Post: 07-12-2010, 02:04 AM
  3. New install: cannot find file: /usr/local/bin/php
    By Rick L. in forum Installation / System Requirements
    Replies: 5
    Last Post: 08-30-2008, 02:52 PM
  4. Replies: 1
    Last Post: 07-29-2007, 09:30 AM
  5. Replies: 4
    Last Post: 02-27-2007, 04:35 AM

Posting Permissions

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