FAQ
I want to install mySql++. I am running mac OS X.3.4. I have just
updated XCode to the latest version, which includes GCC 3.3.

I see on the web site that there is a static library for Mac OS X. It
decompresses to a single file. I have dragged it into XCode into the
External Frameworks section. But surely I will still need headers to
effectively use it?

So I downloaded the source distribution. I made an attempt, contacted
Sinisa, who promptly responded thus:
README is wrong now.

Delete all that you have done and start from a freshly unpacked
tarball.

Apply patches for your compiler and just run ./configure ; make.

And write to plusplus@lists.mysql.com, not to me ....
I guess I would respectfully suggest that the README be changed. But in
any event, I obtained and decompressed the source distribution again. I
didn't see any patches for GCC 3.3. Then I did the following.
[iMac-dv:~] kj% cd
/Applications/Databases/SQL/APIs/mySQL-APIs-C++/Official/mysql++-1.7.9
[iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% ./configure ; make
tcsh: ./configure: Permission denied.
make: *** No targets specified and no makefile found. Stop.
[at this point, in another session, I launched the mySQL server, in
case it was needed]
[iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% ./configure
tcsh: ./configure: Permission denied.
[iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% ls
Configure config.sub* makefile.win
LGPL configure.1* makeinclude.win
Makefile.am configure.in missing*
Makefile.in devel/ mkinstalldirs*
README doc/ sqlplusint/
aclocal.m4 examples/ stamp-h
build.sh* install-sh* stamp-h.in
config.guess* libtool* stamp-h1
config.h ltconfig* stamp-h1.in
config.h.in ltmain.sh
config.status* macintosh
Help me please.
--
Sincerely, Kevin Jaques (at home)

Use jaques@hierlaw.com for work related messages

"Send lawyers, guns and money! Dad get me out of this!" - Warren Zevon

Search Discussions

  • Warren Young at Aug 10, 2004 at 11:26 pm

    Kevin Jaques wrote:

    I guess I would respectfully suggest that the README be changed.
    It's symptomatic of a general lack of maintenance for this project at
    the moment. See the recent thread "Wanted: MySQL++ Project Maintainer"
    if you care about this. You're late to the party, but welcome to come
    in anyway. :)
    I didn't see any patches for GCC 3.3.
    On the MySQL++ web site, or in the first post of that thread.

    I have no idea if it works in MacOS yet, but I would appreciate it if
    you'd post to the list reporting whether it does or not.
    "Send lawyers, guns and money! Dad get me out of this!" - Warren Zevon
    Good taste. :)
  • Kevin Jaques at Aug 11, 2004 at 2:42 pm
    On Aug 10, 2004, at 5:26 PM, Warren Young wrote:
    I didn't see any patches for GCC 3.3.
    On the MySQL++ web site, or in the first post of that thread.
    Doh! I found it now, under the 3d party stuff. OK, it was in plain
    sight. I downloaded it. It came with no readMe, so I just tried to run
    it, with the following unhelpful result.
    [iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj%
    /Applications/\!ToBeFiled/patch_gcc_3.3
    /Applications/!ToBeFiled/patch_gcc_3.3: line 1: ---: command not found
    /Applications/!ToBeFiled/patch_gcc_3.3: line 2: +++: command not found
    /Applications/!ToBeFiled/patch_gcc_3.3: line 3: @@: command not found
    /Applications/!ToBeFiled/patch_gcc_3.3: line 7: +using: command not
    found
    /Applications/!ToBeFiled/patch_gcc_3.3: line 8: +: command not found
    /Applications/!ToBeFiled/patch_gcc_3.3: line 9: syntax error near
    unexpected token `('
    /Applications/!ToBeFiled/patch_gcc_3.3: line 9: ` int main (int argc,
    char *argv[]) {'
    Wed Aug 11 08:21:32 CST 2004
    [iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj%
    Is there a special directory it must be in? Must it be run from a
    particular type of shell? The contents actually appear to be C++.

    To be honest, I'm a novice with the unix stuff too. I'm trying to get
    this working so I can use it in a GUI IDE. Anyway, I also tried:
    [iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% make
    /Applications/\!ToBeFiled/mysql\ patch\ GCC\ 3.3/patch_gcc_3.3
    make: Nothing to be done for `/Applications/!ToBeFiled/mysql patch GCC
    3.3/patch_gcc_3.3'.
    I have no idea if it works in MacOS yet, but I would appreciate it if
    you'd post to the list reporting whether it does or not.
    If the list sticks with me till it works, I'll post a step-by-step set
    of instructions for MacOS and for using it in XCode.
    --
    Sincerely, Kevin Jaques (at home)

    Use jaques@hierlaw.com for work related messages

    "Send lawyers, guns and money! Dad get me out of this!" - Warren Zevon
  • Warren Young at Aug 11, 2004 at 11:50 pm

    Kevin Jaques wrote:

    so I just tried to run it,
    Time to learn Unix, Kevin.

    $ cd mysqldir
    $ patch -p0 /wherever/it/is/patch_gcc_3.3

    If that complains about anything other than one Makefile.in file, try
    -p1. Do all of this with a freshly untarred 1.7.9 tree.
    I'm trying to get
    this working so I can use it in a GUI IDE.
    May I recommend _The Art of Unix Programming_ by Eric S. Raymond,
    chapter 15, to explain why the Unix world does not favor GUI IDEs? Read
    the rest of the book, and you will begin to understand the Unix Way.

    http://www.faqs.org/docs/artu/

    It's available in paper form as well, if you prefer, from Addison-Wesley.
  • Kevin Jaques at Aug 13, 2004 at 1:54 pm

    On Aug 12, 2004, at 2:28 PM, Warren Young wrote:

    Kevin Jaques wrote:
    $ patch -p0 /wherever/it/is/patch_gcc_3.3
    Sorry, that should be

    $ patch -p0 < /wherever/it/is/patch_gcc_3.3

    The patch program was sitting there waiting for input. The <
    redirects the patch file into the patch program's input stream.
    Ah, that makes sense. If it had just asked... Actually, I still
    couldn't have helped it. I don't know what we are trying to patch.

    And that led to my new problem. I tried the API directory, and even the
    sub-directory with all the headers and such (sqlplusint), but it still
    didn't know what file it needed and I didn't either. It occurred to me
    to use the mySQL directory, but I didn't want to mess with that. Still,
    it was exciting to get a response. Here is the transcript.

    And thanks again for the prompt help.
    [iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% patch -p0 <
    /Applications/\!ToBeFiled/mysql\ patch\ GCC\ 3.3/patch_gcc_3.3
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    --- mysql++-1.7.9/examples/cgi_image.cc 2001-05-19
    11:44:48.000000000 -0500
    +++ mysql++-1.7.9_bwh/examples/cgi_image.cc 2002-11-07
    11:20:22.000000000 -0600
    --------------------------
    File to patch: ^C
    [iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% ls
    Configure config.sub* makefile.win
    LGPL configure.1* makeinclude.win
    Makefile.am configure.in missing*
    Makefile.in devel/ mkinstalldirs*
    README doc/ sqlplusint/
    aclocal.m4 examples/ stamp-h
    build.sh* install-sh* stamp-h.in
    config.guess* libtool* stamp-h1
    config.h ltconfig* stamp-h1.in
    config.h.in ltmain.sh
    config.status* macintosh
    [iMac-dv:mySQL-APIs-C++/Official/mysql++-1.7.9] kj% cd sqlplusint/
    [iMac-dv:Official/mysql++-1.7.9/sqlplusint] kj% patch -p0 <
    /Applications/\!ToBeFiled/mysql\ patch\ GCC\ 3.3/patch_gcc_3.3
    can't find file to patch at input line 3
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    --- mysql++-1.7.9/examples/cgi_image.cc 2001-05-19
    11:44:48.000000000 -0500
    +++ mysql++-1.7.9_bwh/examples/cgi_image.cc 2002-11-07
    11:20:22.000000000 -0600
    --------------------------
    File to patch: ^C
    [iMac-dv:Official/mysql++-1.7.9/sqlplusint] kj%
    --
    Sincerely, Kevin Jaques (at home)

    Use jaques@hierlaw.com for work related messages

    "Send lawyers, guns and money! Dad get me out of this!" - Warren Zevon
  • Warren Young at Aug 15, 2004 at 3:17 pm

    Kevin Jaques wrote:
    I don't know what we are trying to patch.
    Be in the mysql++-1.7.9 directory.
    Perhaps you used the wrong -p or --strip option?
    In my previous message, I said "If that complains about anything other
    than one Makefile.in file, try -p1." patch all but told you the same thing.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupplusplus @
categoriesmysql
postedAug 10, '04 at 2:47a
activeAug 15, '04 at 3:17p
posts6
users2
websitemysql.com
irc#mysql

2 users in discussion

Kevin Jaques: 3 posts Warren Young: 3 posts

People

Translate

site design / logo © 2022 Grokbase