Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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.
  1. #1
    Just 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?

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    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.

  3. #3
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4
    actually, there are some executables for linux, such as Mugen

  4. $spacer_open
    $spacer_close
  5. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    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.

  6. #5
    Just Joined! vigol's Avatar
    Join Date
    Jun 2008
    Location
    Uns Cigano from Vigol
    Posts
    24
    Open a terminal such as xterm
    Code:
    % xterm
    Go to target directory such as /bin
    Code:
    % cd /bin
    type command name such as ps
    % ./ps
    some notes:
    1- Go to target & append ./ to filename IFF your Directory is not in PATH environment,
    Code:
    % echo $PATH
    2- make sure that you or the group you belong to that have enough permission to execute the file
    % ls -l filename
    -rwxr--r-- 1 userxxx admin 9675 Jan 21 01:25 filename
    Following Lines are dedicated to FreeBSD (may or may not work in the other kernels)
    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
    Code:
    % kldstat
    Id Refs Address    Size     Name
     7    1 0xc24db000 d000     linux.ko
    If not:
    a1-Temporary - it shall disable after next reboot
    Code:
    kldload linux
    a2-always be enabled, add this line to /etc/rc.conf
    linux_enable="YES"
    a3-statically link Linux binary compatibility into the kernel by adding
    options COMPAT_LINUX
    to your kernel configuration file, and then compile your kernel.
    II- Installing Linux Runtime Libraries
    # cd /usr/ports/emulators/linux_base-f10
    # make install distclean
    III- If you receive this error after running a linux-binary-file
    % ./linux-binary-file
    ELF binary type not known
    Abort
    You must run following command before running linux-binary-file
    % brandelf -t Linux linux-binary-file
    IV-For installing a Linux RPM-based application:
    # cd /compat/linux
    # rpm2cpio -q < /path/to/linux.archive.rpm | cpio -id
    --------------------
    EXTRA Infos
    FreeBSD uses the elf(5) (man 5 elf) format

  7. #6
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4
    Quote Originally Posted by MikeTbob View Post
    Mugen, the game? That's a DOS game, like I said.
    I repeat, THERE IS A LINUX VERSION. When I used Ubuntu, it worked(No, I didn't use WINE)

  8. #7
    Just Joined! vigol's Avatar
    Join Date
    Jun 2008
    Location
    Uns Cigano from Vigol
    Posts
    24
    Try it. I explained about linux(See up)

  9. #8
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4
    Quote Originally Posted by vigol View Post
    Try it. I explained about linux(See up)
    I will. Thx!

  10. #9
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by Failtacular View Post
    I repeat, THERE IS A LINUX VERSION. When I used Ubuntu, it worked(No, I didn't use WINE)
    Can you show me where to download it from? Do you already have it installed?? Follow the advice of vigol.....cd to the correct directory and try launching it that way.
    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.

  11. #10
    oz
    oz is offline
    forum.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

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •