File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ pip install python-magic-bin
7575- When using Homebrew: ` brew install libmagic `
7676- When using macports: ` port install file `
7777
78+ ### SmartOS:
79+ - Install libmagic for source https://github.com/threatstack/libmagic/
80+ - Depending on your ./configure --prefix settings set your LD_LIBRARY_PATH to <prefix >/lib
81+
7882### Troubleshooting
7983
8084- 'MagicException: could not find any magic files!': some
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ def _lib_candidates():
4949 "darwin" : _lib_candidates_macos ,
5050 "linux" : _lib_candidates_linux ,
5151 "win32" : _lib_candidates_windows ,
52+ "sunos5" : _lib_candidates_linux ,
5253 }.get (sys .platform )
5354 if func is None :
5455 raise ImportError ("python-magic: Unsupported platform: " + sys .platform )
You can’t perform that action at this time.
0 commit comments