Tag Info

New answers tagged

0

I had to force the version for the gcc-4.9-base package to get past the error message you posted. Then installing worked sudo apt-get install gcc-4.9-base=4.9.2-0ubuntu1~14.04 Now you can do the regular sudo apt-get install gcc-4.9


2

Python cannot perform a shell's job and do command substitution. You would have to perform the command substitution yourself, or wrap the whole thing using sh -c or bash -c: For example, using subprocess.check_output() to get the output of the pkgconfig command: import subprocess pkg_config_flags = subprocess.check_output(['pkg-config', '--cflags', ...


0

You should not overwrite $PATH in your script. Try this and don't forget the double quotes: MY_PATH="/your/path" /usr/bin/g++ -o "$MY_PATH/calc/calc" "$MY_PATH/calc/calc.cpp" corrected script: #!/bin/bash clear path_1="/media/joris/LinuxDomenai/Cpliuspliusprog" echo "Path yra $path_1" echo "Koks filename?" read failas echo ...


1

You should not overwrite $PATH. Use another name for this. In your special case, this should work. /usr/bin/g++ -o "$PATH/$filename/$filename.cpp /media/joris/LinuxStuff/C plus plus prog/$filename/$filename"



Top 50 recent answers are included