linux-mint

FreeGLUT linking Issues in Linux

本秂侑毒 提交于 2019-12-01 04:31:33
I am running Linux Mint 14.1 64-bit I have installed the following libs: mesa-common-dev, freeglut3-dev, libglew-dev through the apt-get tool. Here are my includes, located in my Main.h file: #include <cmath> #include <cstdlib> #include <iostream> #include <stdio.h> #include <GL/glew.h> #include <GL/glut.h> #include <time.h> I checked that the libs installed correctly, they seem to be located in /usr/lib/x86_64-linux-gnu and the headers in /usr/include/GL I proceed to compile my Main.C file with the following flags: g++ -Wall -Wextra -Weffc++ -Winit-self -Wmissing-include-dirs -Wswitch-default

Linker Error : gcc

狂风中的少年 提交于 2019-12-01 04:15:42
I am getting this error every time, while compiling programs, configuring and installing some things like binutils, textinfo, etc.. /usr/local/bin/ld: this linker was not configured to use sysroots collect2: error: ld returned 1 exit status I want to know clearly about this. When will will come and what is the actual problem, and also how to solve it? Try to use gcc with the following option: gcc --sysroot=/usr/local But, as the others told you in the comments, don't try to mess your system with critical packages such as the binutils , except if you know what you are doing. If you were

FreeGLUT linking Issues in Linux

邮差的信 提交于 2019-12-01 02:25:43
问题 I am running Linux Mint 14.1 64-bit I have installed the following libs: mesa-common-dev, freeglut3-dev, libglew-dev through the apt-get tool. Here are my includes, located in my Main.h file: #include <cmath> #include <cstdlib> #include <iostream> #include <stdio.h> #include <GL/glew.h> #include <GL/glut.h> #include <time.h> I checked that the libs installed correctly, they seem to be located in /usr/lib/x86_64-linux-gnu and the headers in /usr/include/GL I proceed to compile my Main.C file

Linker Error : gcc

社会主义新天地 提交于 2019-12-01 02:09:00
问题 I am getting this error every time, while compiling programs, configuring and installing some things like binutils, textinfo, etc.. /usr/local/bin/ld: this linker was not configured to use sysroots collect2: error: ld returned 1 exit status I want to know clearly about this. When will will come and what is the actual problem, and also how to solve it? 回答1: Try to use gcc with the following option: gcc --sysroot=/usr/local But, as the others told you in the comments, don't try to mess your

“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” in virtualenv

*爱你&永不变心* 提交于 2019-11-30 05:58:10
Environment: Linux Mint 17 Cinnamon. This error is displayed: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 when attempting the following in a virtualenv : pip install lxml pip install pillow pip install pycrypto pip install pymongo (fails but still shows in pip freeze) There are several solutions here that recommend installing python2.7-dev : Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Installing lxml in virtualenv via pip install error: command 'x86_64-linux-gnu-gcc' failed Pillow installation error:

avrdude: ser_open(): can't open device “/dev/ttyACM0”: Device or resource busy

萝らか妹 提交于 2019-11-30 05:12:52
I am Linux Mint user.I am dealing with Arduino Yun.I am compiling Arduino program.After that I am uploading to Arduino Yun.Then I get these error.Can you help me? you first need to make sure you have the correct read/write rights, as described here , esentially enter following commands: $ sudo adduser <username> dialout $ sudo chmod a+rw /dev/ttyACM0 the '/dev/ttyACM0' is the port your arduino is connected to, it should be listed in the /dev folder of your root. second: after you have identified which port the arduino is connected to and you have set the correct rights for this port, you need

Qt Creator, ptrace: Operation not permitted. What is the permanent solution?

天涯浪子 提交于 2019-11-29 19:42:46
While debugging C++ code in Qt creator I get the following error ptrace: Operation not permitted. Could not attach to the process. Make sure no other debugger traces this process. Check the settings of /proc/sys/kernel/yama/ptrace_scope For more details, see /etc/sysctl.d/10-ptrace.conf Here a temporary solution is found: Receiving error while trying to debug in QtProject temporary solution (won't survive a reboot): echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope But it is difficult to run the same code in terminal every time when I start my PC to use Qt. What is the permanent solution

“error: command 'x86_64-linux-gnu-gcc' failed with exit status 1” in virtualenv

霸气de小男生 提交于 2019-11-29 05:19:52
问题 Environment: Linux Mint 17 Cinnamon. This error is displayed: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 when attempting the following in a virtualenv : pip install lxml pip install pillow pip install pycrypto pip install pymongo (fails but still shows in pip freeze) There are several solutions here that recommend installing python2.7-dev : Installing Pillow error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 Installing lxml in

Scripts launched from udev do not have DISPLAY access anymore?

浪子不回头ぞ 提交于 2019-11-29 03:51:21
I have a script that runs from udev when I plug in my external drive. It always worked. But after upgrading from Linux 3.8/Xorg 1.12/Mint 14 ( Ubuntu 12.10 compatible) to Linux 3.11/Xorg 1.14/Mint 16 ( Ubuntu 13.10 compatible), it doesn't work anymore. The script still runs, but none of the commands that require the display work. I figured that out by quitting the udev daemon and manually run udevd --debug for verbose output (more below). This script used to work in Mint 14/12.10 : export DISPLAY=:0 UUID=$1 DEV=$2 notify-send -t 700 "mounting $DEV ($UUID)" gnome-terminal -t "Backing up home...

Removing all special characters from a string in Bash

别说谁变了你拦得住时间么 提交于 2019-11-29 01:58:22
I have a lot of text in lowercase, only problem is, that there is a lot of special characters, which I want to remove it all with numbers too. Next command it's not strong enough: tr -cd '[alpha]\n ' In case of éćščž and some others it returns "?" But I want to remove all of them. Is there any stronger command? I use linux mint 4.3.8(1)-release You can use tr to print only the printable characters from a string like below. Just use the below command on your input file. tr -cd "[:print:]\n" < file1 The flag -d is meant to the delete the character sets defined in the arguments on the input