clinuxsocketssolaris

Cannot find /lib64/ld-linux-x86-64.so.2


I was coding a simple socket agent program in LINUX system(Ubuntu 16.04 server).

When I run this program in Solaris, It gets the following error:

Cannot find /lib64/ld-linux-x86-64.so.2

This list is what I included.

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>

Why is this happening? Please let me know.....


Solution

  • Solaris is not Linux. The system libraries will most likely be in different locations. You will need to recompile your program on Solaris.