Re: [sqlite] wrong version number when compiled

2007-11-23 Thread Xabriel J Collazo Mojica
Guys:

Thank you all for your quick replies!

As P Kishor suggested, I restarted the mac and guess what? It now reports
the correct version. So yes, there is some kind of caching somewhere. I'll
try to search a little more on this caching behaviour and get back to you so
that it gets documented.

I guess if I where on windows I would have restarted right after the
install, but as these freking macs are soo stable I usually shut down
the machine once every week or so. Free ad! :)

regards,
-xabriel

On Nov 23, 2007 6:21 PM, Ulrik Sandborg-Petersen <[EMAIL PROTECTED]> wrote:

> P Kishor wrote:
> > On Nov 23, 2007 3:56 PM, Xabriel J Collazo Mojica <[EMAIL PROTECTED]>
> wrote:
> >
> >> You're right! I tried /usr/local/bin/sqlite3 -version an it reports the
> >> correct version 3.5.2:
> >>
> >> xabita:/ xabriel$ /usr/local/bin/sqlite3 -version
> >> 3.5.2
> >>
> >>
> [snip]
>
> >> Does anyone know if there's any other variable I should flush / reset /
> >> anything to get sqlite3 3.5.2 as the default?
> >>
> >
> >
>
> How about editing the PATH to put /usr/local/bin first?
>
> This is usually done in ~/.bashrc or ~/.profile ...
>
>
> HTH
>
> Ulrik Sandborg-Petersen
>
>
>
> -----------------
> To unsubscribe, send email to [EMAIL PROTECTED]
>
> -
>
>


-- 
Xabriel J. Collazo-Mojica
B.S. in Computer Engineering Student
University of Puerto Rico at Mayagüez
http://xabrielc.googlepages.com


Re: [sqlite] wrong version number when compiled

2007-11-23 Thread Xabriel J Collazo Mojica
You're right! I tried /usr/local/bin/sqlite3 -version an it reports the
correct version 3.5.2:

xabita:/ xabriel$ /usr/local/bin/sqlite3 -version
3.5.2

I cannot remove the old one as I know some Mac programs (Mail, Safari, ...)
depend on it.

Does anyone know if there's any other variable I should flush / reset /
anything to get sqlite3 3.5.2 as the default?

thanks!

-xabriel


On Nov 23, 2007 4:58 PM, Jonathan Otsuka <[EMAIL PROTECTED]> wrote:

>
> On Nov 22, 2007, at 8:52 PM, Xabriel J Collazo Mojica wrote:
>
> > Hi all:
> >
> > I've just downloaded, compiled and installed SQLite3 3.5.2 on my mac.
> > Everything is working fine but the version number. I know OS X 10.4
> > comes
> > with SQLite built-in on /usr/bin. I installed 3.5.2  on /usr/local and
> > updated my PATH so that is all right. Look at what I get:
> >
> > xabita:/ xabriel$ which sqlite3
> > /usr/local/bin/sqlite3
> > xabita:/ xabriel$ sqlite3 -version
> > 3.1.3
> >
> >
> > As mentioned previously my PATH is all right:
> >
> > xabita:/ xabriel$ echo $PATH
> > /usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/bin:/sbin:/usr/
> > bin:/usr/sbin
> >
> >
> > Something weird is that 3.1.3 is the version that my Mac has built-in:
> >
> > xabita:/ xabriel$ /usr/bin/sqlite3 -version
> > 3.1.3
> >
> >
> > So, do somebody see what I am missing?
>
> Not sure you are missing anything. I just mkdir ~/bin/ and copied it
> there and added that to my PATH. Try running:
>
> /usr/local/bin/sqlite3 -version
>
> You may need to remove the old or rename it so it isn't being called.
>
>
> -----------------
> To unsubscribe, send email to [EMAIL PROTECTED]
>
> -
>
>


-- 
Xabriel J. Collazo-Mojica
B.S. in Computer Engineering Student
University of Puerto Rico at Mayagüez
http://xabrielc.googlepages.com


[sqlite] wrong version number when compiled

2007-11-22 Thread Xabriel J Collazo Mojica
Hi all:

I've just downloaded, compiled and installed SQLite3 3.5.2 on my mac.
Everything is working fine but the version number. I know OS X 10.4 comes
with SQLite built-in on /usr/bin. I installed 3.5.2  on /usr/local and
updated my PATH so that is all right. Look at what I get:

xabita:/ xabriel$ which sqlite3
/usr/local/bin/sqlite3
xabita:/ xabriel$ sqlite3 -version
3.1.3


As mentioned previously my PATH is all right:

xabita:/ xabriel$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/bin:/sbin:/usr/bin:/usr/sbin


Something weird is that 3.1.3 is the version that my Mac has built-in:

xabita:/ xabriel$ /usr/bin/sqlite3 -version
3.1.3


So, do somebody see what I am missing?

thanks, regards,
-- 
Xabriel J. Collazo-Mojica
B.S. in Computer Engineering Student
University of Puerto Rico at Mayagüez
http://xabrielc.googlepages.com