“/usr/bin/ld: cannot find -lz”

I am trying to compile Android source code under Ubuntu 10.04. I get an error saying, /usr/bin/ld: cannot find -lz Can you please tell me how can I fix it? What does cannot find -lz mean? Here’s the full error message: external/qemu/Makefile.android:1101: warning: overriding commands for target `external/qemu/android/avd/hw-config-defs.h’ external/qemu/Makefile.android:933: warning: ignoring old commands for target … Read more

How do I force detach Screen from another SSH session?

I had Screen running inside an SSH session. Terminal froze. After restarting Terminal, that Screen session still thinks it’s attached. Maybe it is. Perhaps I don’t really know what that means. I’d like to attach to that Screen session from a fresh SSH login. I do not want to kill that Screen session as important … Read more

Can linux cat command be used for writing text to file?

Is something like this: cat “Some text here.” > myfile.txt Possible? Such that the contents of myfile.txt would now be overwritten to: Some text here. This doesn’t work for me, but also doesn’t throw any errors. Specifically interested in a cat-based solution (not vim/vi/emacs, etc.). All examples online show cat used in conjunction with file … Read more