RE: basic question -linux path..(/usr/bin, /usr/local/bin)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ok..

[root@lserver2 /]# type mysql
mysql is hashed (/usr/local/bin/mysql)
[root@lserver2 /]# file /usr/bin/mysql
/usr/bin/mysql: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
[root@lserver2 /]# rpm -q mysql
mysql-3.23.58-9.1

does this shed any light??

i'd suggest simply copying the files in the '/usr/bin/my*' to the
'/usr/local/bin/my*' except that that would mean i still have files in two
different dirs, and it doesn't solve why this is going on...

-bruce


-----Original Message-----
From: fedora-list-bounces@xxxxxxxxxx
[mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of Paul Howarth
Sent: Tuesday, March 29, 2005 7:29 AM
To: For users of Fedora Core releases
Subject: Re: basic question -linux path..(/usr/bin, /usr/local/bin)


bruce wrote:
> here are the results...
>
> [root@lserver2 /]# ls -l /usr/kerberos/sbin/mysql /usr/kerberos/bin/mysql
> /usr/local/sbin/mysql /usr/local/bin/mysql /sbin/mysql /bin/mysql
> /usr/sbin/mysql /usr/bin/mysql
> ls: /usr/kerberos/sbin/mysql: No such file or directory
> ls: /usr/kerberos/bin/mysql: No such file or directory
> ls: /usr/local/sbin/mysql: No such file or directory
> ls: /usr/local/bin/mysql: No such file or directory
> ls: /sbin/mysql: No such file or directory
> ls: /bin/mysql: No such file or directory
> ls: /usr/sbin/mysql: No such file or directory
> -rwxr-xr-x  1 root root 54352 Oct 12 12:44 /usr/bin/mysql
> [root@lserver2 /]# alias
> alias cp='cp -i'
> alias l.='ls -d .* --color=tty'
> alias ll='ls -l --color=tty'
> alias ls='ls --color=tty'
> alias mv='mv -i'
> alias rm='rm -i'
> alias vi='vim'
> alias which='alias |
> /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
> [root@lserver2 /]# mysql
> -bash: /usr/local/bin/mysql: No such file or directory
>
> as you can see, it appears that '/usr/bin/mysql' should be picked up...
> when i do 'which mysql' it points to the '/usr/bin/mysql'
>
> when i run 'mysql' the system tries to go to the '/usr/local/bin/mysql'
> ideas/suggestions...

This is very strange. Try these:
$ type mysql
$ file /usr/bin/mysql
$ rpm -q mysql

> i could even let you into the system if you thought it would help!!

Beware of making such offers to people you don't know - you never know
if they may be incompetent or even malicious.

Paul.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux