User:Sylvain

From KitwarePublic
Jump to navigationJump to search

crontab on MacOS

  • Example
 crontab -e
 00 20 * * * ctest -S myScript.cmake > myScript.log 2>&1
  • Problem:

When I create a cronjob with

 crontab -e

I get the error message:

 crontab: temp file must be edited in place
  • Solution:

Use the 'nobackup' option in VI:

 :set nobackup
 crontab: installing new crontab

Install X11 on MacOS

To install ParaView-2.4.4, you need to install X11.

  • Insert 'Mac OS X Install Disc 1'
  • Scroll down to 'Optional Installs'
  • Click 'Continue', 'Continue', 'Accept'
  • Select 'Applications', click on the arrow in front of Applications
  • Select 'X11'
  • Click 'Upgrade', enter your password, click 'Ok'

Setup CMake for ICC

To configure a project to use the Intel compiler icc, set CC and CXX *before* you run cmake. Type is the terminal:

 CFLAGS= CXXFLAGS=
 CC=/opt/intel_cc_81/bin/icc
 CXX=/opt/intel_cc_81/bin/icpc

Then run cmake or ccmake.