Linux ext3 and ext4 files - compatability question
I have developed (compiled) some (C/C++) applications on my local machine, which has the ext4 file system. I want to deploy the compiled binaries to my server - which has a ext3 file system format.
Can I simply create a package and deploy the binary on the server - or are the file systems incompatable?
BTW, both my local dev machine and the remote server are running Ubuntu 10.0.4 L开发者_如何转开发TS
You absolutely can. File system formats are completely irrelevant to binary executable formats. You can transfer files from one system to another with no ill effects.
Of course, if your program has external dependencies (shared libraries) then the other system might not have all that's necessary to run your program -- but that's another problem altogether.
Usually (if your program doesn't rely on the filesystem format) there should be no problem. The processors however have to be compatible: you cannot run a program compiled for Intel processor on Sparc. (However, Ubuntu seems to run only on Intel-compatibles, right?)
精彩评论