Error for pip install Pillow on Ubuntu virtualenv


Question I have an ec2 instance and had Pillow 2.0 installed in my virtualenv initially. Somehow when I tried to upgrade it to Pillow 2.5, it failed with the following message. The error is the same even after I removed Pillow completely prior to reinstall. (So now I don't have Pillow in my virtualenv at all) $ pip install Pillow .... .... gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -fPIC -DHAVE_LIBJPEG -DHAVE_LIBZ -DHAVE_LIBTIFF -I/usr/include/freetype2 -I/home/andycheng/realprice/env/build/pillow/libImaging -I/home/andycheng/realprice/env/include -I/usr/include/tcl8.…
Read more ⟶

Express.js: No Such file or directory


Question I installed node with apt-get install nodejs. Then I installed npm with apt-get install npm. Now when I try to run express I get $ express /usr/bin/env: node: No such file or directory How do I resolve this error? Answer There are two package in Ubuntu that have similar names, node and nodejs. node does this, Description-en: Amateur Packet Radio Node program. The node program accepts TCP/IP and packet radio network connections and presents users with an interface that allows them to make gateway connections to remote hosts using a variety of amateur radio protocols.…
Read more ⟶

How to run PyCharm in Ubuntu - "Run in Terminal" or "Run"?


Question When I double-click on pycharm.sh, Ubuntu lets me choose between "Run in Terminal" and "Run". What is the difference between these options? Answer To make it a bit more user-friendly: After you've unpacked it, go into the directory, and run bin/pycharm.sh. Once it opens, it either offers you to create a desktop entry, or if it doesn't, you can ask it to do so by going to the Tools menu and selecting Create Desktop Entry.…
Read more ⟶

How do I update MySQL 5.7 to the new MySQL 8.0?


Question How do I update to MySQL 8.0 from the default version (5.7)? It's important for me for it to make an update and not re-install MySQL so all my data won't be corrupt. There is not a lot of info regarding this issue since it was only released not long ago with tons of awesome new features! This is what I have found that seems like it will only update and not destroy my data.…
Read more ⟶

ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080)


Question For some reason, whenever I run any Perl module (like cpanm), I've been getting this response: ListUtil.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080) I'm not sure why this is happening. There doesn't seem to be any additional stacktrace, and even though there have been numerous bug reports and questions on this error, I was unable to find a solution. I'm running Ubuntu 17.…
Read more ⟶

How to batch resize images in Ubuntu recursively within the terminal?


Question I have multiple images stored in a set of organized folders. I need to re-size those images to a specific percentage recursively from their parent directory. I am running Ubuntu 11.10 and i prefer learning how to do that directly from the terminal. Answer You could use imagemagick. For instance, for resizing all the JPG images under the current directory to 50% of their original size, you could do:…
Read more ⟶

gcc-arm-linux-gnueabi command not found


Question I am trying to install the gnu arm toolchain for ubuntu. I first downloaded the tar from CodeSourcery. However when I go into the bin folder, I cannot run any of the binaries. I have tried with ./ and without and putting it in the PATH and it keeps telling me "Command not Found" yet the file is there in the folder right in front of me. Then I tried sudo apt-get install gcc-arm-linux-gnueabi except after it says it has installed successfully, I cannot find it with whereis gcc-arm-linux-gnueabi.…
Read more ⟶