# Ffi looking for libraries first in /usr/local/lib

**URL:** <https://racket.discourse.group/t/ffi-looking-for-libraries-first-in-usr-local-lib/4115>\
**Category:** General\
**Created:** [February 19, 2026, 5:30pm UTC](https://racket.discourse.group/t/ffi-looking-for-libraries-first-in-usr-local-lib/4115 "2026-02-19T17:30:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hnmdijkema](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/hnmdijkema/32/2629_2.png) [@hnmdijkema](https://racket.discourse.group/u/hnmdijkema)\
**Post date:** [February 19, 2026, 5:30pm UTC](https://racket.discourse.group/t/ffi-looking-for-libraries-first-in-usr-local-lib/4115/1 "2026-02-19T17:30:23Z")

</div>

Is it possible to make racket look for libraries first in /usr/local/lib.  
Or e.g.

libtag\_c.so.2 instead of libtag\_c.so.0?

---

<div class="post-metadata">

**Author:** ![hnmdijkema](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/hnmdijkema/32/2629_2.png) [@hnmdijkema](https://racket.discourse.group/u/hnmdijkema)\
**Post date:** [February 19, 2026, 7:38pm UTC](https://racket.discourse.group/t/ffi-looking-for-libraries-first-in-usr-local-lib/4115/2 "2026-02-19T19:38:53Z")

</div>

Replying to myself. I had to run 'ldconfig' and search for version "2" first.
