In Ubuntu 15.04 64 bits I installed Qt5.6 (online installer) and while trying to move my development environment from Windows 7 to Linux I faced the following: Following this, I managed to find ~/Qt/5.6/gcc_64/plugins/sqldrivers/libqsqlmysql.so and then: Tells libmysqlclient_r.so.16 => not found. In fact, …
Tag: linux
Read system call taking forever on Linux
I’m writing a TCP server application in c++. I’m trying to read a line one char at a time from a socket, but the read() system call never returns. And here is the read_from_conn() function Answer The problem is that connfd wasn’t initialized.
Mount local partition via fuse [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
TCP_FASTOPEN cookie is saved per what?
I’ve been reading about TCP_FASTOPEN in Linux and I can’t figure out per what is cookie saved. If one program on my Linux server connects using tcp fast open, does other program that connects to same server uses previous ones cookie for fast open? Or only sockets from same program can use each oth…
open a file in editor and then save it back by terminal on bash [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
How to run an Ansible task with become and the same $PATH?
I want to run this task but it fails since it does not find the bundle binary because the user I am running it with has a different $PATH in Ansible than when I just sudo su – deploy. If I SSH into the box as root and then run sudo su – deploy and echo ‘whoami’ $PATH I get
Unable to get Beanstalkd Queue to work for PHP
I have Ubuntu running XAMPP (the lamp stack: Linux, Apache, MySQL, PHP, Pear). I would like to use PHP and Beanstalkd together to make a simple queue that when a user goes on page1.php, a JOB is sent to the QUEUE for a WORKER to capture. The JOB would be an SQL statement that the WORKER would then execute: Wh…
Unit test a variable for both true and false
I’m working on a C++ production code here with googletest/googlemock. I’ve stumble upon this idea when working with one of the function in A.cpp: where the header contains: I am stuck in a way that I can only test the function for an expected output of true or an input of false like so: Is there a…
Running qt creator via remote desktop
We are developing a software using QT creator. The software is meant to run on windows and on an ARM mini-computer running Debian. To test the software on the mini-computer, we logged in on the mini computer using ssh and an exported display. Some programs like Inkscape run fine, but we can’t get to run…
Serial communication on Linux with flow control enabled – bad behaviour
I wrote common functions in order to manage serial ports, based on the following structure: I am calling these functions (see below) in another file in order to test an RS232 serial port. The flow control needs to be enabled. In order to validate the implementation, the pinouts Tx and Rx have been connected t…