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

Prefix not honoured by twin (server/wrapper.c) #40

Open
vanrein opened this issue Jul 31, 2019 · 1 comment
Open

Prefix not honoured by twin (server/wrapper.c) #40

vanrein opened this issue Jul 31, 2019 · 1 comment
Assignees
Labels

Comments

@vanrein
Copy link
Contributor

vanrein commented Jul 31, 2019

Twin is nice :)

I installed it with --prefix=/opt/twin and found only one problem: the twin wrapper does not find twin_server because it insists on /usr/local/bin/twin_server.

This is caused by the prefix BINDIR which is not defined for server/wrapper.c and not relative like in client/dm.c. A simple workaround that worked for me was to replace twin with a symbolic link to twin_server in the targeted prefix,

rm /opt/twin/bin/twin
ln -s twin_server /opt/twin/bin/twin

It would of course also be possible to parse argv[0] in server/wrapper.c replace the last component, but that's more work.

@cosmos72
Copy link
Owner

cosmos72 commented Aug 1, 2019

Thanks for reporting this issue,
I will check why server/wrapper.c does not see BINDIR value and try to fix it.

@cosmos72 cosmos72 self-assigned this Aug 5, 2019
@cosmos72 cosmos72 added the bug label Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants