Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sj: execv: No such file or directory #8

Closed
singpolyma opened this issue Jan 5, 2016 · 12 comments
Closed

sj: execv: No such file or directory #8

singpolyma opened this issue Jan 5, 2016 · 12 comments

Comments

@singpolyma
Copy link

When I run:

tcpclient xmpp.openmailbox.org 5222 sj -u singpolyma -s openmailbox.org -r sj
@GReagle
Copy link
Collaborator

GReagle commented Jan 5, 2016

I am guessing that you are missing tlsc. Can you confirm?

@singpolyma
Copy link
Author

@GReagle where do I get tlsc from?

@singpolyma
Copy link
Author

https://github.com/younix/ucspi lists it... but I did make && sudo make install on that

@GReagle
Copy link
Collaborator

GReagle commented Jan 5, 2016

On Tue, Jan 05, 2016 at 12:24:22PM -0800, Stephen Paul Weber wrote:

https://github.com/younix/ucspi lists it... but I did make && sudo make install on that

It doesn't make or install tlsc by default. You have to do make TLS=tlsc tlsc and sudo make TLS=tlsc install. I have no idea
why it's like that.

@singpolyma
Copy link
Author

Oh, and that relies on libressl... is there a version of that for Linux yet?

@younix
Copy link
Owner

younix commented Jan 5, 2016

@GReagle
Copy link
Collaborator

GReagle commented Jan 5, 2016

Yes, I am running it on Linux. See https://github.com/libressl-portable/portable.

@singpolyma
Copy link
Author

Now I'm getting:

tlsc: invalid option -- 'u'

@GReagle
Copy link
Collaborator

GReagle commented Jan 6, 2016

@singpolyma you are almost there; thank you for your persistence. This is a known issue in tlsc, see younix/ucspi#5. Until the bug is fixed, you need to use environment variables. For example env SJ_USER=singpolyma SJ_SERVER=openmailbox.org SJ_RESOURCE=sj tcpclient xmpp.openmailbox.org 5222 sj. You can also automatically set these environment variables in your shell startup script if you'd like then you don't have to type them again.

@singpolyma
Copy link
Author

Thanks :)

@GReagle
Copy link
Collaborator

GReagle commented Jan 11, 2016

You're welcome. Check out sj tools https://github.com/greagle/sjt for some programs to make using sj easier.

@younix
Copy link
Owner

younix commented Jan 11, 2016

The problem seems to be a gnu-extension in getopt(3). Set the environment variable POSIXLY_CORRECT to force gnu-getopt to behave like POSIX-getopt. This should fix that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants