--- common/gestfich.cpp
+++ common/gestfich.cpp
@@ -92,6 +92,7 @@
         wxT( "/usr/bin/" ),
         wxT( "/usr/local/bin/" ),
         wxT( "/usr/local/kicad/bin/" ),
+        wxT( "@PREFIX@/bin/" ),
 #endif
     };
 
--- eeschema/sim/ngspice.cpp
+++ eeschema/sim/ngspice.cpp
@@ -456,7 +456,7 @@
                 "/../../../../../Contents/PlugIns/sim"
     };
 #else   // Unix systems
-    const std::vector<std::string> dllPaths = { "/usr/local/lib" };
+    const std::vector<std::string> dllPaths = { "@PREFIX@/lib" };
 #endif

 #if defined(__WINDOWS__) || (__WXMAC__)
