I have recompiled python2.7.11 using: I have installed django and all the dependencies checking that the pip is located in my new python version I uninstalled the packaged version of mod_wsgi and I have linked mod_wsgi to the new version of python by: When I restart apache both 2.7.6 and 2.7.11 seem to be sta…
Tag: ubuntu
implicit declaration of function ‘sched_setaffinity’
I’m writing a program which needed to be run on single core. To bind it to single core, I’m using sched_setaffinity(), but the compiler gives warning: implicit declaration of function ‘sched_setaffinity’ My test code is: Can you please help me to figure it out. Actually code is compiled and run, b…
replace text between two tabs – sed
I have the following input files: and I am trying to find the second string between the two tabs (e.g. text2, abc2) and replace it with another word. I have tried with but it only deletes the tab and does not replace the word. I appreciate any help! Answer I would suggest using awk here: Set the input and out…
Php.ini changes are not taken on Linux Bitnami Ubuntu
I am using a LAMP stack from Bitnami with Ubuntu. I am trying to increase post_max_size in file php.ini. I changed these values: Then reset with sudo /opt/bitnami/ctlscript.sh restart php-fpm (taken from the Bitnami documentation). No changes take effect. I have tried removing all the text from php.ini. I get…
PHP fopen ‘x+’ doesn’t work on ubuntu
I created an application which has an caching script on an Windows/Wamp environment. This script’s caching function is only allowed to run once at the same time. To achieve this I used a ‘locking file’ with check to see if it exists. On windows this script continues to work fine. But now it …
Installing nvm on bash on ubunutu on windows 10 throws error
I’m testing the new bash on ubuntu on windows 10 and the first thing I tried to do is to install node. Of course, since I now have a “Linux system” I went ahead and installed nvm. I also had to One done i tried but I got: Do you know what’s causing this? I think that I may have
How to move window offscreen with wmctrl
I am trying to programmatically move a window so that it is partially on screen. For instance, clicking the VLC title bar and dragging it so that only half the window is visible works just fine. When I output the results of wmctrl -lG this works just fine: However, when I then move it back on screen and try a…
No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation
I’m running Ubuntu 15.10. So, I just uploaded the Android Studio from the site. After that I unpacked the zip file. Went to android-studio/bin and found studio.sh. Sit permission to be executed chmod +x studio.sh. Ran the file to install with this line: ./studio.sh. Then I had the error I have already n…
Error: mime-types-data requires Ruby version >= 2.0
I recently install clean ubuntu14.04 virtual machine in vware fusion and updated it. I am trying to install the mime-tyes-data by sudo gem install mime-types-data -v 3.2015.1120 The error shows ERROR: Error installing mime-types-data: mime-types-data requires Ruby version >= 2.0. Before that I already upda…
Pointers and virtual memory [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago. Improve this question According to my system’s cpuinfo file, each processor in my system has a 39 bit physic…