SOLVED:You (John) are not allowed to use this program (crontab) on MAC Localhost

After spending hours and days trying to figure this out I ended up finding a solution that was qutie simple.

Actually researching so much about crontab I feel like it has given me quite bit of insight on this feature. Basically the crontab on your mac local host is controlled by two simple files listed below with explanation:

cron.allow (in this file you can add users who you want run cron jobs on your server such as yourself or even root)

cron.deny (in this file you can only add users who you don’t want to run any cron jobs such as Guest account for example.)

You will need to understand those to files in order to move on the next step. Trust me I leant it the hard way. You will find many solutions on the web but many are for different types of servers and thats where it gets tricky because most of the solutions you will will find indicate that cron.allow is located in /etc/cron.allow but that not the case in MAC.

Solution:

1. find where your /etc/cron.allow is located by running this command find / -name “cron.allow” and it will list them all.

In my machine it was located under /private/var/at/cron.deny

2. Type this on your terminal VI /private/var/at/cron.deny

Then add your user inside this file then save :wq

After this to make sure its working enter: crontab -l or crontab -e and if you get the cronjob list its working correctly.

Good luck and shoot me an email if stuck.

SOLVED: Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.

SOLVED: Warning: The Command Line Tools for Xcode don’t appear to be installed; most ports will likely fail to build.

I was trying to install Lynx on my new mac and by using the Xcode on Mac with MacPort.
Command to install xcode I used was:

sudo port install lynx

However, it kept giving me the following error:

Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.

Warning: See http://guide.macports.org/chunked/installing.xcode.html for more information.

--->  Computing dependencies for lynx

--->  Configuring lynx

Error: org.macports.configure for port lynx returned: configure failure: command execution failed

Please see the log file for port lynx for details:

    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_www_lynx/lynx/main.log

To report a bug, follow the instructions in the guide:

    http://guide.macports.org/#project.tickets

Error: Processing of port lynx failed

Solution to fix this error:

  1. Open your Xcode from the application folder
  2. Open the Xcode Preferences menu
  3. Locate the Downloads icon (its the 5th one)
  4. Then click on the Components tab
  5. Click on Command Line Tools and on right side should say Install.
SOLVED: Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.

Once Xcode has been installed, you will have to manually install the Command Line Tool from the Xcode Download Component preference panel.

If done correctly should final outcome should look like this:

--->  Computing dependencies for lynx
---> Configuring lynx
---> Building lynx
---> Staging lynx into destroot
---> Installing lynx @2.8.7rel.2_1+ssl
---> Activating lynx @2.8.7rel.2_1+ssl
---> Cleaning lynx
---> Updating database of binaries: 100.0%
---> Scanning binaries for linking errors: 100.0%
---> No broken files found.

Thats it folks!