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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-djgpp.sh requires sudo privileges to build and install in /usr/local/ #30
Comments
I also ran into this problem. |
I agree with @stsp. That would be in line with how most Unix/Linux makefiles work, with the compilation being done with "make" and the installation being done with "sudo make install" (or just "make install" when a non-privileged installation folder is specified). |
I hadn't really considered this to be an issue. There is already a check in place to test if you have write access to the installation directory: Lines 134 to 146 in 4180d92
I suppose this check could be moved up earlier in the script, before the download phase. Splitting up into separate build/install scripts makes things more complicated, since building gcc requires binutils and the libc headers to be installed first. |
Ahh, indeed. :( |
That's an option, albeit somewhat inconvenient. I'll look into it. |
Thank you! |
See branch I am unable to test this myself, being on mingw64 (where sudo doesn't even exist) |
You are quick! |
First problem: bash (at least on ubuntu) |
I wonder why it asked the password before even |
That's interesting.. I thought git converts line endings automatically? Will need to check my settings.
That is to create the PREFIX directory. You're right, it doesn't make much sense to do that before downloading. |
Maybe, but now I restarted the script, and |
You forgot to chmod also configure. |
I wonder how to give the user a confidence |
That makes sense since it runs
Thanks, fixed. I don't notice these things on windows.... |
I'll have to think about this. You could run the script with |
The main point is not to run downloading or I think you left
traces from some script. |
|
and build failed. |
That's
Whoa, where did this happen?
That's a bug. fixed.
Set |
Here:
But nothing changed. |
Okay that's weird. Looks like something went wrong building automake? I haven't seen that before.
You only need to remove the gcc directory: |
|
Fixed it. |
:)
So it just happened in another place. |
Ah, yes. forgot about those. Should be fixed now. |
Hmm, looks like it now builds! |
But your scripts still contain the wrong |
I fixed that just now by running dos2unix manually. No idea why git didn't auto-convert them, I thought I had that set up right. Will have to check my other repos too. |
Where? |
I merged it in the main branch ( |
Looks functional! |
Love |
Hi there,
First of all, awesome project. This script really saves people a lot of time. 馃槂
The issue I'm reporting here is a minor one: by default, the script installs the cross-compiler and tools in /usr/local/djgpp/. However, on most systems, /usr/local/ is not writable for non-root users, so the script will have to be run with sudo privileges, unless an alternative DJGPP_PREFIX somewhere in the user's home folder is specified.
It might be helpful to clarify this in the README.md file.
Thanks and keep up the good work!
The text was updated successfully, but these errors were encountered: