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

freebsd support #40

Open
dcou opened this issue May 25, 2018 · 3 comments
Open

freebsd support #40

dcou opened this issue May 25, 2018 · 3 comments

Comments

@dcou
Copy link

dcou commented May 25, 2018

I got your script working on freebsd with multiple parameters using this as my first line

#!/usr/bin/env -S c "-I/usr/local/include/ -g -L/usr/local/lib/mysql/ -lmysqlclient --"

might be worth mentioning in the readme

@ryanmjacobs
Copy link
Owner

ryanmjacobs commented May 29, 2018

Interesting... does this apply for even simple scripts? Or only for scripts that link in external libraries, e.g. mysqlclient?

#!/usr/bin/c

#include <stdio.h>

int main(void) {
    printf("hello world\n");
    return 0;
}

@dcou
Copy link
Author

dcou commented May 30, 2018

Yes even for simple scripts, on FreeBSD 11, it has to be

#!/usr/bin/env c

#include <stdio.h>

int main(void) {
    printf("hello world\n");
    return 0;
}

my other more complex example is required when using env with multiple arguments

@andy5995
Copy link

@ryanmjacobs You could add a CI FreeBSD test using https://github.com/vmactions/freebsd-vm

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