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

compiling problems on raspbian #103

Closed
jacmendt opened this issue Apr 11, 2017 · 4 comments
Closed

compiling problems on raspbian #103

jacmendt opened this issue Apr 11, 2017 · 4 comments

Comments

@jacmendt
Copy link

i try to compile the open-plc-utils package on a Raspbian GNU/Linux 8 (armv61) and run into the following error with make install

make[1]: Entering directory `/home/pi/open-plc-utils-ether`
gcc -o efbu efbu.o getoptv.o putoptv.o version.o error.o todigit.o hexencode.o uintspec.o hexdump.o channel.o openchannel.o sendpacket.o readpacket.o closechannel.o basespec.o 
/usr/bin/ld: cannot open output file efbu: Permission denied
Makefile:52: recipe for target `efbu` failed
make[1]: *** [efbu] Error 1
make[1]: Leaving directory `/home/pi/open-plc-utils-ether`
Makefile:29: recipe for target `install` failed
make: *** [install] Error 1

I tried to compile the current master branch. Any advice?

Kind regards, JM

@mhei
Copy link
Contributor

mhei commented Apr 11, 2017

Can you provide your full sequence of commands after git clone?

If you don't mind, you could also try my pre-compiled binaries from: https://packagecloud.io/mhei/open-plc-utils

@jacmendt
Copy link
Author

i did a git clone and executed a make install in the root directory of the project as root user like described in the readme.md.

Your pre-compiled binaries worked for me. So thanks for this.

@mhei
Copy link
Contributor

mhei commented May 1, 2017

Just for the record: I tried to reproduce your issue on my Raspberry Pi but without luck. Only when I "forget" to use sudo I see the same error message which is expected behaviour. Anyway, the README should be slightly adjusted, so I'm filing a PR for this.

mhei added a commit to mhei/open-plc-utils that referenced this issue May 1, 2017
The compilation itself should normally be run without elevated privileges,
so split it from the install step.

While at, adjust some minor formatting issues.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
@n1000
Copy link
Member

n1000 commented May 13, 2017

I'm also able to build without issue on raspbian. Please re-open this bug and provide additional details if you are still seeing this issue.

@n1000 n1000 closed this as completed May 13, 2017
ch-aurich added a commit that referenced this issue May 21, 2017
README: split make process into two steps (fixes #103)
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