i have a brand new ubuntu server x64. i installed the following packages build-essential libboost-all-dev mongodb-dev mongodb-10gen now when i try to compile the example code i get this error. root@server:/home/user/Desktop# g++ mongotest.cpp -pthread -lmongoclient -lboost_thread-mt -lboost_filesystem -lboost_program_options -lboost_system -o tutorial /usr/bin/ld: cannot find -lboost_thread-mt collect2: error: ld returned 1 exit status i searched everywhere i can think of and
Tag: ubuntu
How to find the latest folder in a directory and then make a full path accordingly?
I have a directory which will have some folders and some files within it. Suppose this is my current directory as shown below with pwd command – And I am logged into machineA. This /bat/data/snapshot directory will have some folders and some files within it as shown below – So the two folders I have is 20131222 and 20131215 as
Find the sum of an infinite series
How can I find the sum of an infinite series? Series: My misbehaving example: Is it possible to carry out this method correct calculation or how to resolve this problem in other ways? Answer This series does not converge. It’s called the harmonic series and it’s known to do not converge. Moreover, as a comment says, you need to start
ModEvasive on Ubuntu 12.04 LTS broken?
I’ve installed mod_evasive on ubuntu 12.04 LTS using the instructions here my mod_evasive.conf looks like: Neither DOSEmailNotify or DOSSystemCommand seems to work. If I run the test.pl, the testing script that comes with mod evasive I will get successful connections followed by 403 forbidden,so the module is picking up the mulitple connections and forbidding further connections. However, no email is
Process permanently stuck on D state [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 Exchange site, you can leave a comment to explain where the question
Script for root to git pull as another user
I have a script that I would like to have do a git pull inside another user’s git directory. This script is run by the root user. For example: When I run this, I get: Is there a way to have my script do a git pull as username? Answer Try without the -i option to sudo. That option is
Segfault from ld-linux in my build of glibc
Running Ubuntu 10.04 Downloaded the source and did the following: This works: This fails: But this works: False, grep, and cat and everything else I’ve tried in /bin segfault in the same manner. Is there an issue with the source? Am I compiling it incorrectly? Also of note is that i downloaded the correct version (slightly newer) for the raspberry
How do I detect the Ubuntu version?
I’m currently writing a Python app that changes some network configuration files. The app needs to run on Ubuntu 10.04 to 13.10. The problem is, that NetworkManager is broken in different ways on different versions (though they seem to have finally fixed it in 13.04+), and this causes incompatibilities with my app. I’ve figured out the problems on each version
python 3.x no module named sqlalchemy after installation
I’m trying to install sqlalchemy to interact with mysql database for my python 3.x with ubuntu 12.04, but then when I import the sqlalchemy it says no module named sqlalchemy. This is what i did with installation: Did I do something wrong? Answer By using apt-get you have installed sqlalchemy in the default directory for Ubuntu’s default Python 3, which
How to restart application in tomcat server
I have been looking for some solution to restart app inside tomcat server on remote linux machine but i haven’t found anything yet. Can anyone please tell me how can i restart the application in Tomcat Server after some time interval without restarting the tomcat server on remote machine? Can anyone help me out with the Bash Script and CRON