Installing gammu on Mac OS X

This mini tutorial will explain howto install gammu on Mac OS X, i’m using Mac OS X 10.5.8 and gammu 1.28.0.
To install gammu, you need cmake, and i’m using cmake 2.8.2, i installed it using Homebrew package manager.

To install Homebrew:

$ ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"

Then, you can install cmake with:

$ brew install cmake
Download gammu 1.28.0 here
Next, extract and install it:
$ ./configure
$ make
If you got errors like this:
Scanning dependencies of target array-test
[ 35%] Building C object tests/CMakeFiles/array-test.dir/array-test.o
Linking C executable array-test
[ 35%] Built target array-test
Scanning dependencies of target at-charset
[ 35%] Building C object tests/CMakeFiles/at-charset.dir/at-charset.o
Linking C executable at-charset
Undefined symbols:
“_iconv_open”, referenced from:
_IconvDecode in libGammu.a(coding.o)
_IconvEncode in libGammu.a(coding.o)
“_iconv_close”, referenced from:
_IconvDecode in libGammu.a(coding.o)
_IconvEncode in libGammu.a(coding.o)
“_iconv”, referenced from:
_IconvDecode in libGammu.a(coding.o)
_IconvEncode in libGammu.a(coding.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [tests/at-charset] Error 1
make[2]: *** [tests/CMakeFiles/at-charset.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
Then you’ve to configure cmake build to disable libiconv
$ mkdir build
$ cd build
$ cmake -DWITH_Iconv=OFF ..
$ make
$ sudo make install
Now, let’s connect the modem, i’m using Sierra USB Connect 881, and i got this information on /var/log/system.log:
Jul 16 22:34:10 macbooks-macbook kernel[0]: SierraSwitch: Version number – 1.2.1
Jul 16 22:34:10 macbooks-macbook kernel[0]: SierraSwitch: Driver Mode is 2 (Force Modem)
Jul 16 22:34:10 macbooks-macbook kernel[0]: SierraSwitch: Device version information for Mac OS:
Jul 16 22:34:10 macbooks-macbook kernel[0]: SierraSwitch: Revision = 0, SIPC = 24577(6001), SI Version = 1(1), CDPC = 0, CD Version = 0.0.0
Jul 16 22:34:10 macbooks-macbook kernel[0]: USBF:    41970.457    IOUSBInterface[0x418a700]::joinPMtree – could not find the hub device
Jul 16 22:34:13 macbooks-macbook kernel[0]: 0        0 SierraSupport: start – Default, suspend enabled for this device
Jul 16 22:34:13 macbooks-macbook kernel[0]: SierraSupport: Version number – 1.4.7, Input buffers 16, Output buffers 24
Unfortunately, it does not show where the modem attached on /dev/, because we need it to gammu configuration. So, i search it manually:
$ ls -la /dev | grep sierra
And it shows:
crw-rw-rw-   1 root   wheel      17,   9 Jul 16 22:34 cu.sierra001
crw-rw-rw-   1 root   wheel      17,  13 Jul 16 22:34 cu.sierra05
crw-rw-rw-   1 root   wheel      17,  11 Jul 16 22:34 cu.sierracntl
crw-rw-rw-   1 root   wheel      17,   8 Jul 16 22:34 tty.sierra001
crw-rw-rw-   1 root   wheel      17,  12 Jul 17 01:04 tty.sierra05
crw-rw-rw-   1 root   wheel      17,  10 Jul 17 01:04 tty.sierracntl
Now, let’s create gammu config:
$ cp /usr/local/share/doc/gammu/examples/config/gammurc ~/.gammurc
Mine is something like this:
[gammu]
device = /dev/tty.sierra05
connection = at115200
Finally, test the connection:
===============================
Add MySQL support
===============================
For example, i’ve smsdrc (gammu-smsd config file) like this:
[gammu]
device = /dev/tty.sierra05
connection = at115200
[smsd]
service = MYSQL
PIN = 1234
logfile = /Users/White/.smsdlog
debuglevel = 255
Then i run gammu-smsd and it throws error:
macbooks-macbook:~ White$ gammu-smsd -c /Users/White/.smsdrc
Log filename is “/Users/White/.smsdlog”
gammu-smsd[97218]: MYSQL service was not compiled in!
gammu-smsd[97218]: Failed to setup SMSD service: Desired functionality has been disabled on compile time. (DISABLED[62])
Failed to run SMSD: Desired functionality has been disabled on compile time.
gammu-smsd[97218]: MYSQL service was not compiled in!
It’s because gammu can’t find mysql header library when you compile it.
To add MySQL support to gammu-smsd you need mysql installed, for example i use xampp for Mac OS X, and i’m using 1.7.3 version. All you need to do is download and install the XAMPP itself and the Developer package, cause it contains the header library we need.
.
Now, let’s compile gammu with mysql support, extract gammu as usual, edit cmake/FindMySQL.cmake, add your XAMPP mysql path, it should be look like this:
find_program(MYSQL_CONFIG mysql_config
${MYSQL_CONFIG_PREFER_PATH}
/usr/local/mysql/bin/
/usr/local/bin/
/usr/bin/
/Applications/XAMPP/xamppfiles/bin/
)
Then, let’s configure cmake:
$ mkdir build
$ cd build
$ cmake -DMYSQL_LIBRARIES=/Applications/XAMPP/xamppfiles/lib/mysql/libmysqlclient_r.dylib ..
If everything OK, then it should be show something like this one:
— Configuring Gammu 1.28.0
— Could NOT find Doxygen  (missing:  DOXYGEN_EXECUTABLE)
— Using mysql-config: /Applications/XAMPP/xamppfiles/bin/mysql_config
— Found MySQL: /Applications/XAMPP/xamppfiles/include/mysql, /Applications/XAMPP/xamppfiles/lib/mysql/libmysqlclient_r.dylib
— Could not find PostgreSQL
Then make and make install:
$ make
$ sudo make install
Finally, run gammu-smsd again, if it doesn’t throw errors, then you’ve succeded, congrats 🙂
Have fun with gammu and gammu-smsd  😀

48 comments

  1. Pingback: Using gammu-smsd with multiple phone « Back2arie’s Blog
  2. yoyo · July 31, 2010

    Hi, I have the problem similiar with you, my linux (open suse 11.0) can’t found MYSQL support during running ./configure. After that, I download libmysqlclient-dev but only improve in line “Using mysql-config: /usr/bin/mysql_config” but “MySql not found” still there. My question is, what is realy ./configure search in Mysql support file, because all of header file (*.h) from Mysql already in usr/include/mysql and library file also available in usr/lib/mysql (those both path writen in FimdMySql.cmake. Another question is your command “cmake -DMYSQL_LIBRARIES=/Applications/XAMPP/xamppfiles/lib/mysql/libmysqlclient_r.dylib ..” means that only dynamic library with name “xxx_r” will be linked an the others was not?
    Thanks

  3. Azhari Harahap · August 2, 2010

    Hi

    The ./configure command is looking for the mysql.h file, located somewhere on your filesystem. Mine is on /Applications/XAMPP/xamppfiles/include/mysql.

    If you run mysql_config command, you’ll see where is your mysql working path.

    libmysqlclient is the dynamic/shared library that gammmu need to get Mysql support, i believe linux comes up with .so extension.

    I think you should try to build with custom cmake, not just ./configure, like i did on the post.

  4. Robee · August 4, 2010

    Hi Azhari, I’m currently trying compile this at Mac too. Do we need XCode from Apple Development ? Because at my Mac OS (10.6.4) the latest one, after I brew install cmake, comment “Xcode is not installed! Builds may fail!”.
    Please advise dude

  5. kroto · August 4, 2010

    no, this comment appeared when i try to run command ” brew install cmake”

  6. aaN · August 5, 2010

    gak paham deh klau pake Mac OS x 😀

  7. mollie · September 29, 2010

    hello,
    i’ve the same problem with you, even though i’ve done configuring the FimdMySql.cmake just like you did, and also recompile gammu.
    any idea?
    mysql_config said that it is on /usr/bin/mysql_config
    thx

  8. Azhari Harahap · September 30, 2010

    @mollie: Are you using xampp or mysql on Mac? All you need to do is find mysql.h header file, and libmysqlclient_r.dylib dynamic library to get gammu with mysql support.

  9. bakhtiar rifai · December 31, 2010

    azhari, i can’t run $ cp /usr/local/share/doc/gammu/examples/config/gammurc ~/.gammurc
    notification : not such file or directory

    really need help.. please

    im using bandluxe modem n Xampp n osx 10.6.5

  10. Azhari Harahap · January 1, 2011

    @bakhtiar: Have you run the “make install” command? Otherwise, why not create it (gammurc) manually? it’s a sample config provided by gammu, you can create it by yourself.

  11. bakhtiar rifai · January 2, 2011

    Azhari Harahap :
    @bakhtiar: Have you run the “make install” command? Otherwise, why not create it (gammurc) manually? it’s a sample config provided by gammu, you can create it by yourself.

    im really n00b on this command line things, so where i have to place the gammurc file? coz, seem like my gammu was install on download folder..

  12. Pingback: Backup/export your contacts using gammu « Back2arie’s Blog
  13. Pingback: 2010 in review « Back2arie’s Blog
  14. trimbil · May 4, 2011

    hey, I have some error, after I type ./configure. I thought its because I dont have Cmake, but I already install it in may Mac. anybody know how to solve this error??

    Wrapper script for configuring CMake for Gammu.

    This provides limited compatibility with configure, if you want full
    configuration control, use directly CMake. More information about CMake
    is available at .

    CMake Error: CMake was unable to find a build program corresponding to “Unix Makefiles”. CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
    CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_C_COMPILER_ENV_VAR
    CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
    Missing variable is:
    CMAKE_C_COMPILER
    CMake Error: Could not find cmake module file:/Users/tr_mbil/Downloads/gammu-1.29.0/build-configure/CMakeFiles/CMakeCCompiler.cmake
    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    — Configuring incomplete, errors occurred!

  15. Azhari Harahap · May 5, 2011

    @trimbil: it’s look like you missed the “make” command. You can install it from Developer Tools

  16. trimbil · May 6, 2011

    Thank Azhari, I’m make it, but I have another issue. when I am trying to configuration my device with command : gammu-config, I got message:
    “You need dialog, cdialog or whiptail installed to make this work”
    ( I am using that command on my Ubuntu and that works but not in mac)

    I have trying to find dialog or cdialog or whiptail on google but I can’t found anygood source for my mac. Do you any solution for this.

    thanks for your answer.

  17. Azhari Harahap · May 6, 2011

    @trimbil: gammu-config is just a tool to generate gammu configuration. You can just copy your gammu configuration from ubuntu to mac. Or you can create it manually, the configuration is not so hard. But, if you insist, try to install dialog from macports.

  18. trimbil · May 7, 2011

    Azhari Harahap :
    @trimbil: gammu-config is just a tool to generate gammu configuration. You can just copy your gammu configuration from ubuntu to mac. Or you can create it manually, the configuration is not so hard. But, if you insist, try to install dialog from macports.

    thanks for your answer, I got it now.
    have you ever succeed making a call from gammu?
    I am using gammu for sms gateway for long time ago but only for SMS gateway under windows but now I am trying to making call from gammu under linux and mac.
    maybe you have any suggestion or advice for me? literature or tutorial.
    thank in advance.

  19. Azhari Harahap · May 8, 2011

    @trimbil: Never tried it out, but this link could help
    http://wammu.eu/docs/manual/gammu/index.html#call-commands

  20. trimbil · May 9, 2011

    Sorry, but I am come back with another problem 😀
    I am trying to connect ma nokia to the Mac and I am trying to identify the phone from system.log. but I just got this message from the system “May 9 16:57:21 remote191-125 pcscd[542]: Non-smartcard device launched pcscd [Vendor: 0X67B, Product: 0X2303]”.

    do you know how to solve this? bytheway I am using Nokia 3310.
    thank in advance

  21. Azhari Harahap · May 10, 2011

    @trimbil: Not sure, maybe the pcscd somehow messed up your system. Try to turn it off.

  22. Gopanx · May 17, 2011

    Thanks kang, sukses dah walau sempet bingung.. ternyata folder /Applications/XAMPP/xamppfiles/include/mysql yg ga ada, solusinya install xampp-macosx-1.7.3-dev.dmg soalnya ane ga baca kalo ente bilang “All you need to do is download and install the XAMPP itself and the Developer package” 😀

  23. dean · May 21, 2011

    nice to meet u’r blog.can i ask?
    how to configure gammu with mysql from macport?

  24. Azhari Harahap · May 21, 2011

    @dean: I’m not sure because never try it, but i believe all binary and library from macports located on /opt/local. All you have to do is looking all required library and path, then install it just like i showed on the post.

  25. Pingback: deptz personal blog » Blog Archive » Installing Gammu on Mac OS X Snow Leopard
  26. Agung · February 22, 2012

    Hi Azhary, i have an error like this after ” $ make ” from your instruction,

    Linking C executable smsd
    ld: warning: ignoring file /Applications/XAMPP/xamppfiles/lib/mysql/libmysqlclient.dylib, missing required architecture x86_64 in file
    Undefined symbols for architecture x86_64:
    “_mysql_close”, referenced from:
    _SMSDMySQL_Free in libgsmsd.a(mysql.o)
    _SMSDMySQL_Init in libgsmsd.a(mysql.o)

    ld: symbol(s) not found for architecture x86_64
    collect2: ld returned 1 exit status
    make[3]: *** [tests/smsd] Error 1
    make[2]: *** [tests/CMakeFiles/smsd.dir/all] Error 2
    make[1]: *** [all] Error 2
    make: *** [all] Error 2

    can you figure it out?
    thanks

  27. Azhari Harahap · February 22, 2012

    I’m not sure but it’s looks like arch issue, you might want to set specific arch when running cmake (http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_build_universal_binaries_on_Mac_OS_X.3F)

  28. nieldm · April 1, 2012

    Hello there im trying to compile but throws me this error:

    [ 0%] Building C object helper/CMakeFiles/string.dir/string.o
    In file included from /Users/nieldm/Documents/Github/gammu/helper/string.c:1:
    /Users/nieldm/Documents/Github/gammu/helper/string.h:14:20: error: string.h: No such file or directory
    In file included from /Users/nieldm/Documents/Github/gammu/helper/string.c:1:
    /Users/nieldm/Documents/Github/gammu/helper/string.h:39: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /Users/nieldm/Documents/Github/gammu/helper/string.h:39: warning: conflicting types for built-in function ‘strncasecmp’
    /Users/nieldm/Documents/Github/gammu/helper/string.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘towlower’
    In file included from /Users/nieldm/Documents/Github/gammu/helper/string.c:3:
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:18:19: error: wchar.h: No such file or directory
    In file included from /Users/nieldm/Documents/Github/gammu/helper/string.c:3:
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:28: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UnicodeLength’
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:102: error: expected declaration specifiers or ‘…’ before ‘wchar_t’
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:109: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:116: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:164: error: expected declaration specifiers or ‘…’ before ‘wchar_t’
    /Users/nieldm/Documents/Github/gammu/build/helper/../include/gammu-unicode.h:169: error: expected ‘)’ before ‘value’
    /Users/nieldm/Documents/Github/gammu/helper/string.c:5:19: error: ctype.h: No such file or directory
    /Users/nieldm/Documents/Github/gammu/helper/string.c: In function ‘strcasestr’:
    /Users/nieldm/Documents/Github/gammu/helper/string.c:15: error: ‘size_t’ undeclared (first use in this function)
    /Users/nieldm/Documents/Github/gammu/helper/string.c:15: error: (Each undeclared identifier is reported only once
    /Users/nieldm/Documents/Github/gammu/helper/string.c:15: error: for each function it appears in.)
    /Users/nieldm/Documents/Github/gammu/helper/string.c:15: error: expected ‘;’ before ‘len’
    /Users/nieldm/Documents/Github/gammu/helper/string.c:19: error: ‘len’ undeclared (first use in this function)
    /Users/nieldm/Documents/Github/gammu/helper/string.c:19: warning: incompatible implicit declaration of built-in function ‘strlen’
    /Users/nieldm/Documents/Github/gammu/helper/string.c:23: error: ‘NULL’ undeclared (first use in this function)
    /Users/nieldm/Documents/Github/gammu/helper/string.c:25: error: too many arguments to function ‘strncasecmp’
    /Users/nieldm/Documents/Github/gammu/helper/string.c: In function ‘strchrnul’:
    /Users/nieldm/Documents/Github/gammu/helper/string.c:36: warning: incompatible implicit declaration of built-in function ‘strchr’
    /Users/nieldm/Documents/Github/gammu/helper/string.c:37: error: ‘NULL’ undeclared (first use in this function)
    /Users/nieldm/Documents/Github/gammu/helper/string.c:37: warning: incompatible implicit declaration of built-in function ‘strlen’
    /Users/nieldm/Documents/Github/gammu/helper/string.c: At top level:
    /Users/nieldm/Documents/Github/gammu/helper/string.c:49: error: expected declaration specifiers or ‘…’ before ‘size_t’
    /Users/nieldm/Documents/Github/gammu/helper/string.c: In function ‘strncasecmp’:
    /Users/nieldm/Documents/Github/gammu/helper/string.c:55: error: ‘n’ undeclared (first use in this function)
    /Users/nieldm/Documents/Github/gammu/helper/string.c: At top level:
    /Users/nieldm/Documents/Github/gammu/helper/string.c:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘towlower’
    make[2]: *** [helper/CMakeFiles/string.dir/string.o] Error 1
    make[1]: *** [helper/CMakeFiles/string.dir/all] Error 2
    make: *** [all] Error 2

    thanks

  29. Azhari Harahap · April 2, 2012

    Are you installing gammu from git repository? Please try the latest stable source instead.

  30. nieldm · April 2, 2012

    yes i just clone from this git repository

    git clone git://gitorious.org/gammu/mainline.git gammu

    I got that error running just

    ./configure
    make

    And we i follow the guide i get the same error using the cmake

    thanks

  31. Azhari Harahap · April 2, 2012

    I suggest you to report to gammu mailing list (http://wammu.eu/support/lists/)

  32. Eddy · June 28, 2012

    Hii, nice tut 🙂
    I have question for you, after making configuration look like this:

    find_program(MYSQL_CONFIG mysql_config
    ${MYSQL_CONFIG_PREFER_PATH}
    /usr/local/mysql/bin/
    /usr/local/bin/
    /usr/bin/
    /Applications/XAMPP/xamppfiles/bin/
    )

    compile it using cmake, error appear:
    — Using mysql-config: /Applications/XAMPP/xamppfiles/bin/mysql_config
    — MySQL not found.

    what should I do?

  33. Azhari Harahap · June 29, 2012

    Have you installed the Developer package?

  34. Mazfha · July 5, 2013

    Undefined symbols for architecture x86_64:
    “_IOBluetoothDeviceOpenRFCOMMChannel”, referenced from:
    _thread_main in libGammu.a(blue_osx.o)
    “_IOBluetoothRFCOMMChannelCloseChannel”, referenced from:
    _bluetooth_close in libGammu.a(blue_osx.o)
    “_IOBluetoothRFCOMMChannelGetDevice”, referenced from:
    _bluetooth_close in libGammu.a(blue_osx.o)
    “_IOBluetoothRFCOMMChannelRegisterIncomingDataListener”, referenced from:
    _thread_main in libGammu.a(blue_osx.o)
    _bluetooth_close in libGammu.a(blue_osx.o)
    “_IOBluetoothRFCOMMChannelWrite”, referenced from:
    _bluetooth_write in libGammu.a(blue_osx.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [tests/at-charset] Error 1
    make[1]: *** [tests/CMakeFiles/at-charset.dir/all] Error 2
    make: *** [all] Error 2

    How to solve?

  35. Mazfha · July 13, 2013

    Hi Azhari, how to solve this error?

    adsl-172-10-154-222:gammu-1.28.0 faridahmad$ make


    [ 72%] Built target gsmsd
    make[2]: *** No rule to make target `/Applications/XAMPP/xamppfiles/lib/mysql/libmysqlclient_r.dyli’, needed by `tests/smsd’. Stop.
    make[1]: *** [tests/CMakeFiles/smsd.dir/all] Error 2
    make: *** [all] Error 2

  36. Fungcie · September 10, 2013

    Hi Azhari, can it be compiled in mountain lion? Thanks

  37. adi · November 19, 2013

    mas, tutorialnya ada versi video gak untuk install di mac? saya uda coba gak bisa-bisa 🙂 .. saya pake modem media patner..gimana mas,solusinya ? please

  38. adi · November 19, 2013

    ralat dikit mas,salah tulis pake modem mobile partner huawei E160 🙂 bukan media patner..

  39. Belval · March 6, 2014

    Hello.
    I followed your tuto fine until I try the ./configure command. It returns the following error message : No such fil eor directory
    What shall I do ?
    Thank you in advance

  40. Belval · March 6, 2014

    Ok, I found an aster to my problem : I tried the ./configure command from the wrong place.
    But now, I am finally stuck at the last step : I do not really understand this command :
    build White$ gammu –identify
    And I don’t where to execute it from.
    A little help ?
    Thank you in advance

  41. Belval · March 7, 2014

    I try to make it work, quite hard for a newbie. When I run brew doctor, I get these warnings :
    Warning:

    Python is installed at /Library/Frameworks/Python.framework

    Homebrew only supports building against the System-provided Python or a
    brewed Python. In particular, Pythons installed to /Library can interfere
    with other software installs.

    Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
    If you didn’t put them there on purpose they could cause problems when
    building Homebrew formulae, and may need to be deleted.

    Unexpected .pc files:
    /usr/local/lib/pkgconfig/fuse.pc

    Warning: /usr/bin occurs before /usr/local/bin
    This means that system-provided programs will be used instead of those
    provided by Homebrew. The following tools exist at both paths:

    2to3

    Consider setting your PATH so that /usr/local/bin
    occurs before /usr/bin. Here is a one-liner:
    echo export PATH=’/usr/local/bin:$PATH’ >> ~/.bash_profile

    Shall I take care of it ? If yes, what shall I do to solve each of them ?
    Please, I really need help.
    Thank you in advance

  42. Azhari Harahap · March 7, 2014

    Hi
    After make and make install, you should able to run `gammu –identify` command anywhere, if you want to know the exact location you can type `which gammu`

  43. Belval · March 7, 2014

    Thank you Azhari.
    When I try gammu –identify, I get a “gammu: command not found”.
    And when I try which gammu, I get nothing, even with -s option.
    So it looks clear that gammu did not install correctly. Shall I fear problems if I try your tuto again without precautions ?

  44. Belval · March 7, 2014

    I don’t trust what I did with “./configure” and “make”.
    First, “./configure” gave me this error message : No such file or directory
    As I had extracted gammu 1.28.0 in my desktop folder, I went in gammu-1.28.0 folder here to run “./configure” command and it looked like to work.
    Did I do well ?

  45. Belval · March 8, 2014

    Hi.
    I had downloaded gammu 1.33.0.
    I extracted it on my desktop and, went in gammu-1.33.0 folder and ran “./configure” and “make”.
    Here are the errors I encountered for each :

    ./configure :
    — Looking for _strnicmp – not found
    — Looking for _stricmp – not found
    — Looking for strchrnul – not found
    — Looking for I_SETSIG – not found
    — Looking for getopt_long – found
    — Looking for daemon – not found
    — Looking for initgroups – not found
    — Looking for dup – not found
    — Performing Test ICONV_SECOND_ARGUMENT_IS_CONST – Failed
    — Performing Test HAVE_MACRO_FUNC – Failed
    — Looking for IOBluetoothDeviceOpenRFCOMMChannelSync in /System/Library/Frameworks/IOBluetooth.framework – not found
    — OS X Bluetooth 2.0 not found.
    — libusb-1.0 not found.
    — Performing Test IRDA_FOUND – Failed
    — Performing Test LINKER_HAS_WL___AS_NEEDED – Failed

    make :
    /Users/iMac1/Desktop/gammu-1.33.0/libgammu/misc/coding/md5.c:172:24: warning: ‘memset’ call operates on objects of type ‘struct MD5Context’ while the size is based on a different type ‘struct MD5Context *’ [-Wsizeof-pointer-memaccess]

    /Users/iMac1/Desktop/gammu-1.33.0/libgammu/misc/coding/md5.c:172:24: note: did you mean to dereference the argument to ‘sizeof’ (and multiply it by the number of elements)?

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/gammu.c:2264:26: warning: comparison of constant 99999 with expression of type ‘GSM_MemoryType’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/calendar.c:690:34: warning: comparison of constant 2147483647 with expression of type ‘GSM_Error’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/file.c:240:18: warning: comparison of constant 99999 with expression of type ‘GSM_FileType’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/memory.c:363:24: warning: comparison of constant 99999 with expression of type ‘GSM_MemoryType’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/memory.c:433:34: warning: comparison of constant 2147483647 with expression of type ‘GSM_Error’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/ringtone.c:487:22: warning: comparison of constant 99999 with expression of type ‘GSM_RingNoteStyle’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/ringtone.c:494:21: warning: comparison of constant 99999 with expression of type ‘GSM_RingNoteNote’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/ringtone.c:501:29: warning: comparison of constant 99999 with expression of type ‘GSM_RingNoteDurationSpec’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/ringtone.c:508:25: warning: comparison of constant 99999 with expression of type ‘GSM_RingNoteDuration’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/todo.c:311:22: warning: comparison of constant 99999 with expression of type ‘GSM_ToDo_Priority’ is always false [-Wtautological-constant-out-of-range-compare]

    /Users/iMac1/Desktop/gammu-1.33.0/python/gammu/src/convertors/wap.c:131:18: warning: comparison of constant 99999 with expression of type ‘GSM_MMS_Class’ is always false [-Wtautological-constant-out-of-range-compare]

    Then I tried to run “gammu –identify” and “which gammu”. The first still returns “command not found” and the second still returns nothing.

    Please help

  46. Zam · March 10, 2014

    now life much easier. just use: “brew install gammu” and the magic happen..

  47. Belval · March 11, 2014

    Thank you Zam, the magic has happen !
    gammu –identify works fine, great.
    Next problem now : when I try “import gammu” in Python (idle), I get “No module named ‘gammu'”. When I run help(“modules”), it gives me the list of all available modules where gammu is missing. Am I supposed to do anything else to give Python access to gammu ?
    Thank you in advance

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s