Jump to content


Photo

problem with loading extension


  • Please log in to reply
No replies to this topic

#1 Smart_Weird

Smart_Weird
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 26 May 2006 - 03:03 PM

hi ppl

i have a very bad problem with dl() function
i want to load an extension called "magickwand.so"
the owner of the site told me that the file is located either in /usr/bin/mogrify/magickwand.so
or /usr/bin/convert/magickwand.so

i wrote that code
//=====

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]$extensionFile = "/usr/bin/mogrify/magickwand.so";
dl($extensionFile);[/quote]

//=====

but a warring comes up :

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: dl(): Unable to load dynamic library './/usr/bin/mogrify/magickwand.so' - .//usr/bin/mogrify/magickwand.so: cannot open shared object file: No such file or directory[/quote]

i noted the "./" in the beginning (extension_dir = ./ ) so i stepped up .. but

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: dl(): Unable to load dynamic library './../../../../usr/bin/mogrify/magickwand.so' - ./../../../../usr/bin/mogrify/magickwand.so: cannot open shared object file: No such file or directory[/quote]

i put the file "magickwand.so" in the same dir of the script
so $extensionFile = "magickwand.so";
but:
[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: dl(): Unable to load dynamic library './magickwand.so' - libWand.so.9: cannot open shared object file: No such file or directory[/quote]

can anyone give me a hand
hint: im not in the safe_mode if u gonna tell me that

thanks veryyyyy much in advance




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users