Sponsored Content
Top Forums Web Development Installing mysql:sudo launchctl: command not found Post 302888048 by iHaveAQuestion on Wednesday 12th of February 2014 12:40:04 PM
Old 02-12-2014
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
Code:
Find launchctl

as the command. See last post.



Then did what you said to do.
Code:
Macbookpro:/ shortname$  which launchctl
 /bin/launchctl

2.

I again tried the same thing. the command from bin directory.
Code:
launchctl load -w /com.mysql.mysql.plist

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
Code:
MacBookPro:library shortname$ cd launchdaemons
MacBookPro:launchdaemons shortname$ ls
com.adobe.SwitchBoard.plist        com.mysql.mysql.plist
com.adobe.fpsaud.plist            com.oracle.java.Helper-Tool.plist

and looked inside 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
Code:
sudo vi  /Library/LaunchDaemons/com.mysql.mysql.plist.

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.


Code:
MacBookPro:/ shortname$ sudo launchctl load -w /com.mysql.mysql.plist
launchctl: Couldn't stat("/com.mysql.mysql.plist"): No such file or directory
nothing found to load

MacBookPro:/ shortname$ cd bin
MacBookPro:bin shortname$ sudo launchctl load -w /com.mysql.mysql.plist
Password:
launchctl: Couldn't stat("/com.mysql.mysql.plist"): No such file or directory
nothing found to load



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.
Code:
MacBookPro:launchdaemons shortname$ sudo launchctl load -w -F com.mysql.myswl.plist
launchctl: Couldn't stat("com.mysql.myswl.plist"): No such file or directory
nothing found to load

but it is there !
Code:
MacBookPro:launchdaemons shortnamel$ ls
com.adobe.SwitchBoard.plist        com.mysql.mysql.plist
com.adobe.fpsaud.plist            com.oracle.java.Helper-Tool.plist

the contents of com.mysql.mysql.plist

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.mysql.mysqld</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/mysql/bin/mysqld_safe</string>
<string>--user=mysql</string>
</array>
</dict>

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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sudo: command not found

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)
Discussion started by: cthinh
1 Replies

2. UNIX for Dummies Questions & Answers

Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:"

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)
Discussion started by: Chloe123
1 Replies

3. UNIX for Dummies Questions & Answers

sh: sudo: not found

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)
Discussion started by: iamnew2solaris
0 Replies

4. Solaris

Error in installing the mysql-python-1.2.3.tar.gz

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)
Discussion started by: AlexCheung
2 Replies

5. BSD

Installing MySQL package

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)
Discussion started by: desreguard
1 Replies

6. BSD

Installing FreeBsd. No usb device found

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)
Discussion started by: snet
3 Replies

7. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

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)
Discussion started by: fluoborate
9 Replies

8. UNIX for Dummies Questions & Answers

launchctl loads app with icon (OS X)

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)
Discussion started by: nextyoyoma
4 Replies

9. Red Hat

Problem in installing mysql

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)
Discussion started by: mukulverma2408
9 Replies

10. Shell Programming and Scripting

Error installing MySQL 8 on RHEL 7

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)
Discussion started by: mohtashims
8 Replies
All times are GMT -4. The time now is 05:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy