On Thu, Mar 19, 2009 at 6:19 PM, erfon haubenstock <m...@erfon.com> wrote:
>
> ok so macports installed sqlite3 just fine, but how do i check the version?
> i think i now have 3 versions of sqlite installed.
>
> 1 - when i type sqlite3 --version i get version 3.4.0
> 2 - when i type usr/local/bin/sqlite3 --version i get version 3.5.4
> 3 - I know that macports has installed 3.6.11, but don't know where it was
> installed.
>
> How on earth do i get all these versions to be the same?

now, why would you want that? If they were all the same, then why have
three versions? Think about that. Would you want three identical
copies of iTunes on your computer? No? well, then why have three
identical copies of SQLite?

As I said earlier, you have taken a very difficult route to accomplish
a very simple thing.

Your computer comes with a version that is in /usr/bin. My suggestion
-- leave that alone and don't tinker with it.

You install your own version in /usr/local (the binary in
/usr/local/bin, the libs in /usr/local/lib and so on). It will take
less time to do that than all the back and forth on email lists. Also,
don't mess with macports and fink unless you really have to as they
are usually more grief than worth it (but, you already have messed
with them, so can't unwind that).

You are using bash. Just type 'setting bash path' in Google and look
up the answer. You should know that anyway -- it is useful knowledge.
While at it, learn up on the role of the .bashrc and .bash_profile
files as well. Very useful.

The whole exercise will take about 15 to 20 mins including all the
downloading, installing and learning about bash.

Good luck.



>
> thanks
>
> erfon
>
> erfon haubenstock wrote:
>>
>> Thanks for pointing me to that piece of the guide.  Copying the contents
>> of my .profile into my .bash_login fixed the port command problem i was
>> having : D
>>
>> This is my first experience with paths, .profile, or .bash_login and
>> macports so this has all be quite a learning experience for me.  I feel
>> like neo from the matrix...
>>
>> Trying to install sqlite3 now, I'll let you all know how it goes.
>>
>> thanks
>>
>> erfon
>>
>> Lawrence Gold-3 wrote:
>>>
>>> On Mar 19, 2009, at 4:29 PM, erfon haubenstock wrote:
>>>
>>>>
>>>> Hi again.  Thanks for trying to help me by the way : D
>>>>
>>>> I tried relauching terminal and even restarting my computer, but to no
>>>> avail.
>>>>
>>>> I'm not totally sure I understand when you say:
>>>>
>>>> One common pitfall here is that you must open a new shell for the port
>>>> command to be recognised (or re-export the correct PATH). This seems
>>>> likely
>>>> as the default location for the port command is /opt/local/bin/port,
>>>> which
>>>> is not in your PATH.
>>>>
>>>> Do I need to change my PATH?
>>>
>>> The MacPorts installer is supposed to automatically set up the PATH
>>> for you.  I wonder if you might have a .bash_login or .bash_profile
>>> file that's taking precedence:
>>>
>>>      http://guide.macports.org/#installing.shell
>>>
>>> Regardless, typing
>>>
>>>      /opt/local/bin/sqlite3
>>>
>>> should bring up the version you expect.
>>>





-- 
Puneet Kishor http://www.punkish.org/
Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/
Carbon Model http://carbonmodel.org/
Open Source Geospatial Foundation http://www.osgeo.org/
Sent from: Madison WI United States.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to