[fpc-pascal] Multipe path in TProcess.Environment ?

fredvs fiens at hotmail.com
Sun Jun 21 22:55:54 CEST 2015


Hello.

If a TProcess runs a executable who needs a library, that does the trick =>
TProcess.Environment.Text := 'LD_PRELOAD='/the/directory/of/thelibrary.so' 
;   

You may also use this => (it seems bad ;-( =>
http://xahlee.info/UnixResource_dir/_/ldpath.html ) =>
TProcess.Environment.Text := 'LD_LIBRARY_PATH=/the/path/of/library'

But what if multiple libraries are needed ?
I have try with => 
TProcess.Environment.Text :=
'LD_PRELOAD=/the/directory/of/thelibrary1.so;/the/directory/of/thelibrary2.so' 
; 
But without luck.

Same for LD_LIBRARY_PATH, how to define multiple path ?
=>  TProcess.Environment.Text :=
'LD_LIBRARY_PATH=/the/directory1/;/the/directory2/'
Without luck too. ;-(

Many thanks.

Fre;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Multipe-path-in-TProcess-Environment-tp5721893.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list