It appears your system hasn't got the 32-bit libraries...
apt-get install ia32-libs
Or, write yourself some 64-bit code. This is very different from 32-bit code! There are examples around...
Or, go back to 32-bit system calls... or 64-bit system calls. You've got my example of "print the matrix" (not very good, but it works). You'll have to tell ld "-melf_i386", but you won't be looking for libraries you don't have.
You wanna do just two digits?
; value in al
aam
add ax, 0x3030
xchg al, ah
mov [buffer[, ax
mov eax, 4
mov ebx, 1
mov ecx, buffer
mov edx, 2
int 0x80
(untested!)
Best,
Frank