https://bugs.winehq.org/show_bug.cgi?id=49920
--- Comment #3 from Daniel Ribeiro da Silva ferion11@hotmail.com --- (In reply to Alexandre Julliard from comment #2)
WINEDLLPATH should point to lib/wine, not lib/wine/fakedlls.
ok! It worked this way for a long time, but changed it now to: PATH="/my/path/bin:/my/path/usr/bin:${PATH}" WINEVERPATH="/my/path" WINESERVER="/my/path/bin/wineserver" WINELOADER="/my/path/bin/wine" WINEPATH="/my/path/bin:/my/path/lib/wine:${WINEPATH}" WINEDLLPATH="/my/path/lib/wine:${WINEDLLPATH}"
and still got the error: /my/path/usr/lib32/wine: error while loading shared libraries: /my/path/usr/lib32/wine: cannot open shared object file: No such file or directory
but my wine executable is on /my/path/bin/wine