Error: (9021) Resource compiler "fpcres" not found lazarus / 13-General ---------------------------------------------------------------------- trev · 2021-08-02 02:12 After compiling a new trunk version of Lazarus, I received this error which was a little puzzling because fpcres was located in /usr/local/bin. The -va log shows: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i [7.840] Searching file project1.res... found[7.840] Searching file /Applicatio ns/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/us r/bin/fpcres... not found[7.840] Searching file /Applications/Xcode.ap p/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/FPCRE S... not found[7.840] Searching file /usr/local/lib/fpc/3.3.1/fpcres... not found[7.840] Searching file /usr/local/lib/fpc/3.3.1/FPCRES... not found[7.840] Searching file /usr/bin/fpcres... not found[7.840] Searching file /usr/bin/FPCRES... not found[7.840] Searching file /bin/fpcres... not found[7.840] Searching file /bin/FPCRES... not found[7.840] Searching file /usr/sbin/fpcres... not found[7.840] Searching file /usr/sbin/FPCRES... not found[7.840] Searching file /sbin/fpcres... not found[7.840] Searching file /sbin/FPCRES... not found[7.840] Error: (9021) Resource compiler "fpcres" not found, switching to external mode The question is why it didn't look in /usr/local/bin which is in my path: Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ echo $PAT H/Users/trev/bin:/Users/trev/svn/bin:/usr/local/bin:/usr/bin:/bin:/usr /sbin:/sbin:/Library/Apple/usr/bin The IDE environment variables list shows an abbreviated path: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Environment variables:...PATH=/usr/bin:/bin:/usr/sbin:/sbin... One solution was to add -FD/usr/local/bin to my existing .fpc.cfg file. I'm still puzzled why it suddenly became necessary though and why the IDE path is not the same as my $PATH. ---------------------------------------------------------------------- dbannon · 2021-08-02 05:40 > The question is why it didn't look in /usr/local/bin which is in my path: Maybe (and you know how much know about MacOS !) your path is set in your bash rc file and that applies when you are running a terminal but you are starting Lazarus directly, not via bash ? Davo ---------------------------------------------------------------------- trev · 2021-08-02 11:55 Quote from: dbannon on August 02, 2021, 07:40:14 amMaybe (and you know how much know about macOS !) your path is set in your bash rc file and that applies when you are running a terminal but you are starting Lazarus directly, not via bash ? In my case, my shell is tcsh, and the path is set in .cshrc. However, that's not the end of it, macOS has global (ie all users inherit) paths specified in: * /etc/paths which contains, among others, /usr/local/bin * /etc/paths.d (directory) with individual files containing an app- specific path(s) and of course, individual user paths are set in the login shell dot resource files (like .cshrc). It used to work and now it doesn't without some finagling...