Can't run the compilation script - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Discussion (https://forum.cuberite.org/forum-5.html) +--- Thread: Can't run the compilation script (/thread-2273.html) Pages:
1
2
|
Can't run the compilation script - DaPorkchop - 12-26-2015 Just got a fancy new pi 2. I know that gcc-4.8 and g++-4.8 are needed in orger to compile correctly, so i ran Code: sudo apt-get install g++-4.8 gcc-4.8 clang git cmake make Quote:gcc-4.8 (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2 But the script still says that I need to install gcc and g++ again. Any way to fix this or do I need to just use a precompiled build? RE: Can't run the compilation script - LogicParrot - 12-26-2015 Hello, please try setting your system-wide default compiler to the newer gcc using this: Code: sudo update-alternatives --config gcc You may need to undo what you've done with the aliases. RE: Can't run the compilation script - DaPorkchop - 12-26-2015 Quote:pi@raspberrypi-Server ~ $ sudo update-alternatives --config gcc RE: Can't run the compilation script - LogicParrot - 12-26-2015 How exactly did you create the aliases? If you used the `alias` command, it won't affect any scripts you execute. You can try compiling manually: Code: git clone --recursive https://github.com/cuberite/cuberite.git RE: Can't run the compilation script - DaPorkchop - 12-26-2015 Yeah, it was alias. Im compiling manually, but how should I have made the aliases? RE: Can't run the compilation script - LogicParrot - 12-26-2015 In all honesty, any way to alias would have been dirty. The proper solution would be to find out what exactly is wrong with `compile.sh` or your setup. What was the output of `compile.sh`? Also, does typing `gcc` at the terminal without using aliases return a `command not found`? RE: Can't run the compilation script - DaPorkchop - 12-26-2015 Yes, no aliases + gcc command = command not found. RE: Can't run the compilation script - LogicParrot - 12-26-2015 (12-26-2015, 06:24 AM)DaPorkchop Wrote: Yes, no aliases + gcc command = command not found. I think this shouldn't normally happen. Did you install gcc4.8 from the normal repo? One way to resolve it is to create a symlink: Code: sudo ln -s /usr/bin/gcc /usr/bin/gcc-4.8 Note that I don't know where your gcc-4.8 is installed, so you may need to modify the `/usr/bin/gcc-4.8` and `/usr/bin/g++-4.8` parts. To easily find where they are, use `whereis gcc-4.8`. RE: Can't run the compilation script - DaPorkchop - 12-26-2015 Ok, I'll try that later. Im on my phone right now, pasting long commands is not a good idea... RE: Can't run the compilation script - bearbin - 12-26-2015 I think a link here is the wrong thing to do, a bash alias would be more appropriate. |