WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: x11vnc "path" to openssl doesn't match openssl location  (Read 4283 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
x11vnc "path" to openssl doesn't match openssl location
« on: January 31, 2010, 05:31:26 PM »
Code: [Select]
could not find openssl(1) program in PATH.
(also checked: :/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/sfw/bin)
could not find openssl(1) program in PATH.
(also checked: :/usr/bin:/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/sfw/bin)
31/01/2010 16:18:09 openssl_init: could not create or open saved PEM: (null)

Code: [Select]
tc@box2:/$ sudo find . -name "openssl"
./tmp/tcloop/openssl-0.9.8k/usr/local/openssl-0.9.8k/bin/openssl
./usr/local/openssl-0.9.8k/bin/openssl
 
big pc man

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #1 on: February 01, 2010, 05:48:35 PM »
try something like:
Code: [Select]
export PATH="${PATH}:/usr/local/openssl-0.9.8k/bin/openssl"
x11vnc

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #2 on: February 01, 2010, 09:10:57 PM »
try something like:
Code: [Select]
export PATH="${PATH}:/usr/local/openssl-0.9.8k/bin/openssl"
x11vnc
Yeah that's a good idea. I wonder if this should be added to the openssl startup script?
big pc man

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #3 on: February 01, 2010, 09:26:50 PM »
No, that should be done if needed on an extension by extension basis.  And it would be done if needed by a wrapper script for the extension.  Installing openssl into a directory that is not in $PATH is normal, and many programs will recognize an openssl not installed into $PATH.  For those that don't, a wrapper script can be used.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #4 on: February 02, 2010, 08:36:47 AM »
No, that should be done if needed on an extension by extension basis.  And it would be done if needed by a wrapper script for the extension.  Installing openssl into a directory that is not in $PATH is normal, and many programs will recognize an openssl not installed into $PATH.  For those that don't, a wrapper script can be used.
OK that makes sense.
So the x11vnc.tcz extension should be remade with a wrapper script.
big pc man

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #5 on: February 02, 2010, 10:43:22 AM »
the x11vnc extension does have a wrapper script. The script is x11vnc in /usr/local/bin, this is the script:
Code: [Select]
#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/openssl-0.9.8k/lib
/usr/local/bin/x11vnc-bin "$@"

I haven't had trouble before using this kind of script before  between the 0.9.8h and 0.9.8k openssl extensions.
I can add a PATH adjustment to the wrapper if that will clear this bug up.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #6 on: February 02, 2010, 11:59:26 AM »
the x11vnc extension does have a wrapper script. The script is x11vnc in /usr/local/bin, this is the script:
Code: [Select]
#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/openssl-0.9.8k/lib
/usr/local/bin/x11vnc-bin "$@"

I haven't had trouble before using this kind of script before  between the 0.9.8h and 0.9.8k openssl extensions.
I can add a PATH adjustment to the wrapper if that will clear this bug up.
It would also be nice to have a start,stop restart capability like dropbear and samba services. The start command would of course have to include the "use the configuration file option".
big pc man

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #7 on: February 02, 2010, 12:36:32 PM »
the x11vnc extension does have a wrapper script. The script is x11vnc in /usr/local/bin, this is the script:
Code: [Select]
#!/bin/sh
export LD_LIBRARY_PATH=/usr/local/openssl-0.9.8k/lib
/usr/local/bin/x11vnc-bin "$@"

I haven't had trouble before using this kind of script before  between the 0.9.8h and 0.9.8k openssl extensions.
I can add a PATH adjustment to the wrapper if that will clear this bug up.
It would also be nice to have a start,stop restart capability like dropbear and samba services. The start command would of course have to include the "use the configuration file option".
I'll look into this but I don't have the time at the moment to get this done. I may later this week.
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: x11vnc "path" to openssl doesn't match openssl location
« Reply #8 on: February 02, 2010, 10:04:46 PM »
Noting the wrapper script in the .info might be helpful.