Category: Linux

Various posts related to Windows operating system

Posted in How To Linux

make: /opt/local/bin/ginstall: No such file or directory

make: /opt/local/bin/ginstall: No such file or directory

This happened to me while running bundle install on json v1.7.7.
The fix is

# sudo if necessary
ln -s /usr/bin/install /opt/local/bin/ginstall

READ MORE
Posted in How To Linux

Installing Oracle XE 11g on OpenSuSE 12.2 and similar

Overall the installation is pretty smooth, just follow the instructions on Oracle website.
There are two minor hiccups though:
1. cannot touch `/var/lock/subsys/listener’: No such file or directory
This error is cause by the fact there is no /var/lock/subsys directory in some Linux distros, so you need to create one. Before you…

READ MORE
Posted in Linux Tools

Don’t use valgrind on MacOS!

Subj,
It’s buggy and misleading. You will do better by installing Oracle Virtualbox (free) with Linux (free) and running valgrind (free) in the virtual machine.

READ MORE
Posted in How To Linux Other

GIT: ! [remote rejected] master -> master (n/a (unpacker error))

I’m working on multiple machines under multiple accounts on the same project and using git to sync between the codebases. The program by its nature has to run under root account, so no wonder at some point permissions got screwed up and I’ve got stuck with this error:

! [remote…

READ MORE
Posted in Linux

Why on earth make invokes cc instead of gcc!?!

I’m working on my next cool project (subscribe to RTFMS.com to find out details) and got stuck with an interesting problem. Here is a fragment of my Makefile:


SOURCES := $(wildcard *.c)

%.o: %.c %.h
$(I_CC) $(I_CCFLAGS) -c $< ... When I run make clean;make the output is following: gcc -g -I. -I/usr/include -c 1.c gcc...

READ MORE
Posted in Hardware Linux

Fixing Wireshark’s “TCP checksum offload” error in linux

On some linux machines when you run wireshark you may notice that a lot of packets are marked as invalid (highlighted as black). The contents looks perfectly correct, but for some reason checksum is brkoen and wireshark suggestes that the reason for such unpleasant event is “TCP checksum offload”. Let’s…

READ MORE
Posted in Hardware Linux Robotics Software

Fix: Error: register r24, r26, r28 or r30 required

I was recently compiling some Arduino code with NewSoftSerial and got hit by infamous “Error: register r24, r26, r28 or r30 required” error. NewSoftSerial is a great library and those using older avr-gcc compiler enjoy it alot. Problem is the newer gcc doesn’t like one nasty error in the code…

READ MORE
Posted in Hardware Linux

Solving libopenocd.so: undefined reference to `FT_GetLatencyTimer’ problem during openocd compilation

If you dare to build OpenOCD from svn trunk and lucky to have a USB JTAG adapter there is a good chance you will see something like

/bin/sh ../libtool –tag=CC –mode=link gcc -std=gnu99 -g -O2 -I/root/Distr/ftd2/libftd2xx0.4.16 -Wall -Wstrict-prototypes -Wformat-security -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Werror -o…

READ MORE
Posted in Linux

How to autologin root

This is a famous/popular question in many Linux forums. The typical answer to the question is “Login (especially autologin) into a system as root is bad”. That’s right, but WTH! The person is asking how to do that, not if it is good or bad! If you don’t know the…

READ MORE
Posted in Linux

How to resize knote

In some versions of KDE (like 4.2.2) there is a bug in knote that prevents users from resizing the note. The bug is fixed in 4.2.3, but if you are still using 4.2.2 you still can resize it.

READ MORE
Posted in Linux

“Build dependency: Please do not compile as root.” in kamikaze 8.09

Good news is OpenWRT 8.09 got recently released. Bad news is that you can’t compile it as root. Yes, compiling as root is bad, but in some situations you absolutely need to do that and you’re just unable to do that. In previous versions it was possible to “export FORCE=1”…

READ MORE