Sponsored Content
Top Forums Web Development Installing mysql:sudo launchctl: command not found Post 302888022 by iHaveAQuestion on Wednesday 12th of February 2014 10:17:37 AM
Old 02-12-2014
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:


Code:
launchctl load -w /comdotmysql.mysql.plist

**Error message
-bash: launchctl: command not found.

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.
Code:
sudo vi /Library/LaunchDaemons/comdotmysql.mysql.plist

Use the following content:

<plist version="1.0">
  <dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>comdotmysql.mysqld</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/local/mysql/bin/mysqld_safe</string>
    <string>--user=mysql</string>
    </array>
  </dict>
</plist>

Can someone please explain what I am missing ?

Why is this command
****
Code:
-bash: launchctl: command not found.

That is launch c t lowercase L not number 1
****
someone suggested that i echo the path....

From the first prompt:
Code:
computerName:~<shortname$> echo "${PATH}"
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

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.
 

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:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy