Installing mysql:sudo launchctl: command not found
I have run into an obstacle. See error message below **
I am Running: 'Mountain lion' , 'Mac OS X 10.8.3'
I have downloaded: MySQL version. Mac OS X 10.7. (X86, 64-bit), DMG Archive.
After several days of reading about: Installation of MySQL Enabling apache server And getting phpMyAdmin up
I found two sets of instructions: link1 and link2 about installing
apache, phpMyAdm and mySQL.
Link1.
i keep getting errors that i have 5+ urls in this message. i just deleted link1.
it is under 'apple forum discussions doc-3082'
Where this sentence lead me to believe I could use the version listed above.
There is NO version for 10.8
" Download MySQL from a local mirror. You want the Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive. At the time of writing this User Tip, the current version is 5.5.34. By the time you read this, there may be a newer version to use instead. Open the archive mysql-5.5.34-osx10.6-x86_64.dmg. "
I followed the instructions on link1, and all went well until getting this error message when I type the following command at the terminal prompt:
1. I cd - changed directories all the way back up the file structure to type the command to see if it needed to be run someplace special but the same error came up.
2. I searched here on this forum and on the web.
3. I went back and checked over every step and everything that i typed.
4. I ended up typing the instructions below by hand
because somewhere I read that a copy/paste may insert invisible characters.
Excerpt from link1.
Can someone please explain what I am missing ?
Why is this command **** That is launch c t lowercase L not number 1
****
someone suggested that i echo the path....
From the first prompt:
It has been a while since I have been navigating around at a unix prompt.
That looks like the path is too long.
Can you interpret the above path for me if it is not too much trouble ?
An added note.
The following link2 also had a very nice set of instructions but unlike link1, this link uses the
'Preference pane' and 'startup item' which link1 discourages because it causes problems down the road.
I would rather use the command line and do not want to give up on this method.
The forum only allow for one url but if you search the below you will find link2 if you are interested. It seems like a good site but I do not want to mess up my system or file structure installing and configuring a bunch of things.
Link2. the coolestguidesontheplanet install-configure- apache-mysql-php-phpmyadmin
Now that I am going head strong with this project, I hope that my issue can be resolved quickly with this community so I don't loose my momentum.
Thanks a lot.
Hi.
1.
As you suggested I did a 'find launchctl' all the way up the tree.
2.
Then I just looked in the directories and found the below.
launchctl (is not a directory) found in bin.
3.
I did find this.
I think but not certain that mysql needs to launch from com.mysql.mysql.plist. I tried to run the code
thanks for responding quickly.
i want to understand this stuff
thanks again.
Pity Im at work... my Mac is at home...
I am puzzled by you answer, did you type which launchctl ?
If that produces nothing (understand - Return nothing - you can test with another command like ls to see...) then I, as a paranoid would go to root and search for it:
then check all occurence to see what they are...
Once found the one required, check if executable and why its not in the PATH environment variable
Would set it and see if now things og better...
installing mySQL: 'launchctl not found' &now 'nothing to load'
Thanks. I know that you are helping me in between things. I appreciate that.
It is also hard to decipher these bit long responses. I am trying to get right back but it takes time to run code and copy/paste here in some sort of organized manner.
1.
I had typed
as the command. See last post.
Then did what you said to do.
2.
I again tried the same thing. the command from bin directory.
Same error:
-bash: launchctl: command not found.
If you look above in my previous post in the code boxes, you will see that I had already located one launchctl in the bin directory by navigating around.
I looked around
and lookedinside of com.mysql.mysql.plist.
Big Mistake.
When I cut and pasted the code from the setup site, I had extra code
which I deleted. It was something like
Not really certain but I think that may have caused the
launchctl command not found
3. i rebooted terminal and executed the command again from
top of tree
and
from bin
Getting a different error message.
4. It's the executable launchctl. yes ? If it is not a directory.
You seem like a systems person.... Lucky you
Me heading in as root.... I am a little brave but not yet.
But as mentioned, I like to understand the system and files and look around hence not using the GUI installs.
I am serious about learning (relearning) this stuff.
At this point just want to get MySQL and phpMyAdmin up and running.
I will be at this all day.
Thanks again,
---------- Post updated at 12:40 PM ---------- Previous update was at 12:01 PM ----------
still troubleshooting this.
but it is there !
the contents of com.mysql.mysql.plist
is this line okay ?
<string>com.mysql.mysqld</string>
is this line of code okay ? <string>com.mysql.mysqld</string>
it is exactly from the setup instructions.
thanks again.
Last edited by iHaveAQuestion; 02-12-2014 at 01:45 PM..
Reason: tag the code
My guess, is launchctl is executable but for root only... so you will have to use sudo...Now command line : since you edited:
I believe the command then should be:
But I have no idea what your optins (-w -F) are for.. I am not a Mac person...
Sorry for not going over the rest of your post, but i want to concentrate on this small part of your problem:
First, Unix is CASE-SENSITIVE! If someone asks you to run "find" and you type "Find" chances are you will have no success at all (if you are lucky) or run something completely different without noticing (if you are unlucky). In Unix, "Find" and "find" are two completely different things. The same goes for every other file, command, directory, ...
Second: the "find" command is used differently and the way you used it (even if you have used "find", not "Find") would not have found anything. If you do not know how to use a command use the "man"-pages. For any command "command", type
and for a keyword "keyword" type
The two forms are alternatives. Use either one and get a list of articles like the following (from a AIX v5.3 system, your output may look slightly different):
The numbers in the brackets are chapter numbers, the names are keywords. You could now, for instance, do a
to get information about the "adfutil"-command. I suggest you do a "man find" (you can also issue "man man" to learn how to use "man" itself) and learn how to use "find".
My yum install command is failing. I first did yum clean all
I even tried with localinstall.
Below is the error output:
yum install mysql-community-server*.rpm
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an... (8 Replies)
Hi i am trying to install mysql rpm package on my linux machine but getting below error :
warning: MySQL-embedded-5.5.28-1.rhel5.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL-devel is needed by MySQL-embedded-5.5.28-1.rhel5.i386
... (9 Replies)
We are deploying an app to our students that is running as a daemon. It keeps them from using certain software. The problem is that when we initially deploy it we don't want to require a restart. So we decided to use launchctl to load the daemon manually. When we do it this way, though, the... (4 Replies)
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Hello, all. My english is not good.
I have a problem installing FreeBsd.
I have not CD-Roms, so i use program FlashBoot for convert iso-image to USB Device.
After, I was beginning to install FreeBsd (Sorry my english)
When it's time to choose an installation media, i select 9 USB:... (3 Replies)
Hey all I'm having a little trouble installing a MySQL database. This is what I tried...
export PKG_PATH=ftp://mirror.planetunix.net/pub/OpenBSD/4.9/packages/`machine -a`
pkg_add -v mysql-server mysql-client
and this is what I get
Unknown element: @rcscript /etc/rc.d/mysqld in... (1 Reply)
Hi,
I followed the step written in README.
It got some error message when I type " #python setup.py build"
running build
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.11-i86pc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/lib/python2.4/pycc -DNDEBUG... (2 Replies)
As I am trying to log in, when input my user-name (root), when the password prompt, this is what I got (highlighted in red), before i can put in my password. Please tell my why this happened.
console login: root
Password:
sh: sudo: not found
Thank you. (0 Replies)
Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks!
When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error:
exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
I am totally newbie. I try to login UNIX Solaris 10 through ssh command as user then i use sudo command to login as root: sudo su - but system give me an error sudo: not found. How can i fix this problem and install ssh services for my unix. (1 Reply)