Results 1 to 10 of 11
I have FreeBSD, and I don't know how to succesfully run an executable file. It tries to open the file with Mousepad. What should I do?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-21-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 4
How to run executables with FreeBSD
I have FreeBSD, and I don't know how to succesfully run an executable file. It tries to open the file with Mousepad. What should I do?
- 01-21-2010 #2
Hello and Welcome.
Are you talking about .exe files? Those are for Windows and DOS only. You might be able to get it to work with WINE, which you should find in your system repos.I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
I'd rather be lost at the lake than found at home.
- 01-21-2010 #3Just Joined!
- Join Date
- Jan 2010
- Posts
- 4
actually, there are some executables for linux, such as Mugen
- 01-21-2010 #4
Mugen, the game? That's a DOS game, like I said.
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
I'd rather be lost at the lake than found at home.
- 01-21-2010 #5
Open a terminal such as xterm
Go to target directory such as /binCode:% xterm
type command name such as psCode:% cd /bin
some notes:% ./ps
1- Go to target & append ./ to filename IFF your Directory is not in PATH environment,
2- make sure that you or the group you belong to that have enough permission to execute the fileCode:% echo $PATH
Following Lines are dedicated to FreeBSD (may or may not work in the other kernels)% ls -l filename
-rwxr--r-- 1 userxxx admin 9675 Jan 21 01:25 filename
1- for running Linux binary you should do a few ...>:
a- Linux binary compatibility is not turned on by default, So you should enable it.
I- first of all check that you have|haven't it in kernel OR have loaded in any way
If not:Code:% kldstat Id Refs Address Size Name 7 1 0xc24db000 d000 linux.ko
a1-Temporary - it shall disable after next reboot
a2-always be enabled, add this line to /etc/rc.confCode:kldload linux
a3-statically link Linux binary compatibility into the kernel by addinglinux_enable="YES"
to your kernel configuration file, and then compile your kernel.options COMPAT_LINUX
II- Installing Linux Runtime Libraries
III- If you receive this error after running a linux-binary-file# cd /usr/ports/emulators/linux_base-f10
# make install distclean
You must run following command before running linux-binary-file% ./linux-binary-file
ELF binary type not known
Abort
IV-For installing a Linux RPM-based application:% brandelf -t Linux linux-binary-file
--------------------# cd /compat/linux
# rpm2cpio -q < /path/to/linux.archive.rpm | cpio -id
EXTRA Infos
FreeBSD uses the elf(5) (man 5 elf) format
- 01-22-2010 #6Just Joined!
- Join Date
- Jan 2010
- Posts
- 4
- 01-22-2010 #7
Try it. I explained about linux(See up)
- 01-22-2010 #8
- 01-22-2010 #9I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.
I'd rather be lost at the lake than found at home.
- 01-22-2010 #10forum.guy
- Join Date
- May 2004
- Location
- arch linux
- Posts
- 18,733
Six files up from the bottom of this page you can find what is said to be a Linux version of Mugen, but I seriously doubt that it has a file with an .exe extension in it.
That said, I'm not going to download it to check it out.
oz


Reply With Quote

