Programs written in scripting language can be compiled and executed on-site according to the interpreter. Others are compiled, which simply saves the user’s compilation time. For example, the rar official website provides downloads of compiled unrar binary files.
So how does he achieve compatibility between different versions of the system? The answer is, they are not compatible! Binary files compiled by the i386 instruction set cannot be run on an ARM machine. Even if they are compiled on arm, each instruction set is incompatible and cannot be used. For example, there are many versions of the arm version binary file on the rar official website, and it seems that none of them can run directly on Xiaomi routers.
The mongodb you mentioned is compiled. You can see the download links for different platforms on the mongo official website. They are compiled for different platforms in advance. Of course, you can also download the source code and compile it yourself
Programs written in scripting language can be compiled and executed on-site according to the interpreter.
Others are compiled, which simply saves the user’s compilation time. For example, the rar official website provides downloads of compiled unrar binary files.
So how does he achieve compatibility between different versions of the system?
The answer is, they are not compatible! Binary files compiled by the i386 instruction set cannot be run on an ARM machine. Even if they are compiled on arm, each instruction set is incompatible and cannot be used. For example, there are many versions of the arm version binary file on the rar official website, and it seems that none of them can run directly on Xiaomi routers.
Provide different binary versions for different platforms in advance for users to download, ready to use out of the box
Yes, redis is similar.
If there is no special choice (32/64), (linux/windows)
It is compatible
Binary file, you can run it directly
The mongodb you mentioned is compiled. You can see the download links for different platforms on the mongo official website. They are compiled for different platforms in advance. Of course, you can also download the source code and compile it yourself
If it is not specifically mongodb, it may also be because of java