If you see the following exception when during the preparing content phase of indexing, it means that the Search executable was unable to find the appropriate library dependencies in its search path.

14:35:06,189 WARN  [IndexDeploymentService] Potential problem with
SearchEngine 300002 atg.search.routing.SearchEngineException:
atg.search.routing.SearchEngineLaunchException:
/ATG/ATG2007.3/Search2007.3/SearchEngine/i686-linux
-gcc345/bin/atgsearch exited
with error code 127

This can happen if the wrong version of Search was installed for your operating system, or the search path LD_LIBRARY_PATH is not correctly set. To check the search path, run the ldd tool against the executable and ensure that all library dependencies can be found, and that the ones in the bin folder are selected. You can also check the executable and dependencies by running the following command at a command line:

atgsearch -v
 
loading table of contents...