[Freeswitch-users] FreeSWITCH, OSX, Libtool, Macports

Neil Patel neilp at cs.stanford.edu
Tue May 22 03:38:46 MSD 2012


Thanks Mario,

There was an old Jira that reported the same problem as mine, compiling on
OSX:
http://jira.freeswitch.org/browse/FS-1949

Looks like the fix had to do with setting some config parameters to compile
FS in 64-bit mode (I'm on 64-bit macbook pro). Is this still necessary? I
remember reading on another thread that nowadays you should not mess with
the compile flags when running ./configure since the process auto-detects
what you need. But still, is there any reason to force compile FS in 64 bit
or 32 bit mode for OSX?

Also note that I'm on OSX Lion, though I hope that isn't the cause.

Thanks,
Neil

On Mon, May 21, 2012 at 1:40 PM, Mario G <mario_fs at mgtech.com> wrote:

> Wish I could help more... this is what I tried today and all worked fine,
> I am on Snow Leopard. You may want to try to redo the git, may have been an
> xfr issue?
> 1, git pull followed by make current - worked
> 2. clean src fs dir, new git reload, bootstrap.sh, configure with ssl,
> make install - worked fine
>
>
> On May 21, 2012, at 10:29 AM, Neil Patel wrote:
>
> Hi Mario,
>
> Thanks for your valuable posts on getting FS up and running on OS X.
>
> I'm doing so myself and ran into a snag compiling latest Git:
> http://jira.freeswitch.org/browse/FS-4230
>
> Given your expertise on FS and OSX I thought you may be able to help me
> get through this issue. Any suggestions?
>
> Thanks,
> Neil
>
> On Fri, May 11, 2012 at 9:41 AM, Mario G <mario_fs at mgtech.com> wrote:
>
>> Some answers for you:
>>
>> On May 10, 2012, at 7:23 PM, Chris Mylonas wrote:
>>
>> That's great Mario.  I will update my blog accordingly where I posted
>> some stuff (
>> http://mrvoip.com.au/blog/install-freeswitch-osx-mysql-must-remove-macports
>> )
>>
>> I just winged it because it used to work, so most of the prerequisites
>> were installed.
>> I did not put the --with-openssl flag when doing configure.  What
>> functionality do I lose?
>>
>>
>> From what I remember, it complained about gnutis or something like that,
>> you have to check the messages but it is really important, used to not be
>> required. It took several days to figure this one out. I think the message
>> was:
>> configure: error: --with-ssl was given, but GNUTLS is not available.
>>
>>
>>
>> pkgconfig was already on my system from earlier efforts - so I guess I
>> got lucky with that one.
>> To be honest, once I resolved my macports issues (by removing it) it was
>> just like doing it in linux.
>>
>>
>> The funny thing is I still see a few pkgconfig missing messages during
>> the make but FS works fine for me, I think it's for things I am not using.
>> I will be looking into this more before I update the wiki.
>>
>>
>> I'd like to give it another shot with a fresh OSX install - but I really
>> don't want to go about setting up my machine again!  I have an old imac
>> that is not doing much, but I don't think it will run 10.6 :(   I will try
>> and give it a shot this afternoon seeing as my girlfriend is out taking
>> photos :)
>>
>>
>> FYI, when I have not updated for a long time or make major changes like
>> updating xCode: I backup the Mac Mini running FS as a bootable partition (I
>> use SuperDuper), then I connect it to an iMac and boot using firewire
>> target mode to boot from the backup. Now I can play round all I want. If
>> all goes well, I just restore to the Mini, if not I can start over. For
>> frequent updates I just backup the FS bin and source in the Mini with and
>> do a git pull, etc....
>> Mario G
>>
>>
>> Kind Regards,
>> Chris
>>
>>
>>
>>
>> On 11/05/2012, at 11:48 AM, Mario G wrote:
>>
>> Chris, I have been running FS on 10.6,x since 2010 fine and have been
>> updating a lot recently to help testing, I have had no problems. I don't
>> use macport stuff. I wrote the original FS osX wiki but there are some
>> differences since 2010 (I am working on fixing the wiki in the next few
>> weeks). The wiki install instructions work if you add the following. Hope
>> this helps:
>>
>> 1. Add this info:
>> FreeSWITCH™ has many functions that invoke PKG-CONFIG, so it must be
>> downloaded and installed separately.
>> # Got to [http://pkgconfig.freedesktop.org/releases/ here] and download
>> the latest pkg-config, by default it is placed into your Downloads folder.
>>   MUST USE .25 for OSXdue to glib2 dependencies!
>> # Open Downloads and click the file to uncompress it.
>> # Launch the Terminal application if not already running and issue these
>> commands to move the source to the src directory, build and install:
>>     cd ~/Downloads
>>     mv pkg-config-0.25 /usr/local/src
>>     cd /usr/local/src/pkg-config-0.25
>>     ./configure
>>     make
>>     sudo make install <– sudo is required because binaries are loaded
>> into /usr/bin
>>
>>
>> 2. You MUST do this:
>> ./bootstrap.sh
>> ./configure --with-openssl
>>
>> 3. The FLITE fix is no longer needed.
>>
>> On May 10, 2012, at 5:01 PM, Chris Mylonas wrote:
>>
>> Hi FS Users,
>>
>> tl;dr;  - removed macports, removed tree, pulled fresh tree = installed
>> FS on OSX.
>>
>>
>> Here is the longer version that had a bit of a pre-emptive whinge about
>> libtool version mismatch.  But we never got there - it worked!
>>
>> I'm in the process of re-installing FS on OSX (10.6.8).  I have removed
>> Macports to try and get this up and running.
>> I re-bootstrapped and got this error:
>>
>> quiet_libtool: Version mismatch error.  This is libtool 2.4, but the
>> quiet_libtool: definition of this LT_INIT comes from libtool 2.2.4.
>> quiet_libtool: You should recreate aclocal.m4 with macros from libtool 2.4
>> quiet_libtool: and run autoconf again.
>> make[1]: *** [libfreeswitch_la-switch_apr.lo] Error 63
>> make: *** [all] Error 2
>>
>> Removed the whole git tree just in case there was some left over junk.
>>  Pulled a fresh tree and noticed this remark during a fresh bootstrap
>>
>> arakis:freeswitch-git chrismylonas$ rm -Rf freeswitch/
>> arakis:freeswitch-git chrismylonas$ git clone
>> git://git.freeswitch.org/freeswitch.git
>> Cloning into freeswitch...
>> remote: Counting objects: 185609, done.
>> remote: Compressing objects: 100% (39208/39208), done.
>> remote: Total 185609 (delta 143241), reused 181443 (delta 140035)
>> Receiving objects: 100% (185609/185609), 77.85 MiB | 267 KiB/s, done.
>> Resolving deltas: 100% (143241/143241), done.
>>  arakis:freeswitch-git chrismylonas$ cd freeswitch/
>> arakis:freeswitch chrismylonas$ ./bootstrap.sh
>> bootstrap: checking installation...
>> bootstrap: autoconf version 2.61 (ok)
>> bootstrap: automake version 1.10 (ok)
>> bootstrap: aclocal version 1.10 (ok)
>> bootstrap: libtool version 2.2.4 (ok)
>> Bootstrapping using:
>>   autoconf  : /usr/bin/autoconf
>>   automake  : /usr/bin/automake
>>   aclocal   : /usr/bin/aclocal
>>   libtool   : /usr/bin/glibtool (2.2.4.)
>>   libtoolize: /usr/bin/glibtoolize
>>   make      : /usr/bin/make (GNU Make 3.81)
>>   awk       :  ()
>>
>> It is still reporting a 2.2.4 version of libtool.
>> ...
>> ...
>> ...
>> In the end, it has been compiled and installed though
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120521/09961903/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list