Find the answer to your Linux question:
Results 1 to 7 of 7
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem with execute wine-development by symbolic link


    I would like execute wine-development by symbolic link.

    So, I call:

    ln -sf /usr/bin/wine-development /usr/local/bin/wine

    But when I run: wine-development --version it works, but when I call wine --version I get an error message:

    error: unable to find wine executable. this shouldn't happen.

    This problem occurs only for link to wine-development, for link to any other file symbolic link works properly.

    I use debian 8.7

    how solve this problem ?

  2. #2
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    2,183
    What is this wine-development, a script?

  3. #3
    Quote Originally Posted by Segfault View Post
    What is this wine-development, a script?
    it was installed from a command line by:

    apt-get install wine-development

    site: winehq.org

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    2,183
    What is this wine-development, a wrapper script? Darn, I'm having deja vu.

  6. #5
    Quote Originally Posted by Segfault View Post
    What is this wine-development, a wrapper script? Darn, I'm having deja vu.
    application/x-shellscript

    content of the script:

    #!/bin/sh
    #
    # Wrapper script to start a Winelib application once it is installed
    #
    # Copyright (C) 2002 Alexandre Julliard
    #
    # This library is free software; you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation; either
    # version 2.1 of the License, or (at your option) any later version.
    #
    # This library is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public
    # License along with this library; if not, write to the Free Software
    # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
    #

    # determine the app Winelib library name
    app=$(basename "$0" .exe)
    name=$(echo $app | cut -d- -f1)
    suffix=$(echo $app | sed s/$name//)
    appname=$name.exe

    # first try explicit WINELOADER
    if [ -x "$WINELOADER" ]; then exec "$WINELOADER" "$appname" "$@"; fi

    # finally look in PATH
    exec wine$suffix "$appname" "$@"

  7. #6
    Quote Originally Posted by Segfault View Post
    So look inside of the script, your answer is there.
    Sorry, but I still do not know where the problem is

  8. #7
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    you should use code tags for code, not quote tags.

    it's the basename bit in your output - the basename resolves to the name of the symlink.
    in other words, you cannot give the symlink a different name than the linked file.

Posting Permissions

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