bad path in bash

Walton Hoops walton at vyper.hopto.org
Mon Mar 23 19:15:20 UTC 2009


No, I used the source from the official MySQL page.  I wouldn't think that
would affect bash's pathing  though.

That said (and you're going to hit me for this), a restart of the server
cleared up the problem.  Still strange that it occurred though :-P

Thanks for the help!

-----Original Message-----
From: ubuntu-users-bounces at lists.ubuntu.com
[mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Carl
Friis-Hansen
Sent: Monday, March 23, 2009 1:09 PM
To: Ubuntu user technical support, not for general discussions
Subject: Re: bad path in bash

Walton Hoops wrote:
> That would certainly work, but I'd rather figure out why the problem is
> occurring :-)
> 

Did you really use Ubuntu's source. I could imagine your make install 
file is intended for a different distribution.

> -----Original Message-----
> From: ubuntu-users-bounces at lists.ubuntu.com
> [mailto:ubuntu-users-bounces at lists.ubuntu.com] On Behalf Of Carl
> Friis-Hansen
> Sent: Monday, March 23, 2009 12:55 PM
> To: Ubuntu user technical support, not for general discussions
> Subject: Re:
> 
> Walton Hoops wrote:
>> OK wise Ubuntu'ers.
>>
>> So I've built MySQL from source as the version in the repository does 
>> not support partitioning.  Got it installed, running, all is well and 
>> good.. Until.
>>
>> root at grunt:/usr/local# mysql
>>
>> bash: /usr/bin/mysql: No such file or directory
>>
>> root at grunt:/usr/local# which mysql
>>
>> /usr/local/bin/mysql
>>
>> root at grunt:/usr/local# ls -l /usr/local/bin/mysql
>>
>> -rwxr-xr-x 1 root root 340157 2009-03-23 11:48 /usr/local/bin/mysql
>>
>> root at grunt:/usr/local# /usr/local/bin/mysql --password
>>
>> Enter password:
>>
>>  
>>
>> Any idea why bash is trying to exec /usr/bin/mysql (which does not 
>> exist), when which says it should be /usr/local/bin/mysql (which does 
>> and works)?
> 
> That is where is normally is, so what about a link to where you have
yours?
> 


-- 
       +---------------------------------+-------------------+
       | Carl Friis-Hansen               | Fiskeryd Nybygget |
       | http://computingconfidence.com/ | 341 91  Ljungby   |
       | Phone: +46 (0)372 15033         | Sweden            |
       +---------------------------------+-------------------+


-- 
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users





More information about the ubuntu-users mailing list