/usr/bin/X11/xterm找不到
Tofloor
poster avatar
js2fj5zqh
deepin
2014-06-18 00:16
Author
软件的代码中要求
/usr/bin/X11/xterm
但2014中找不到.我将/lib/ter**/x/xterm软链过去,启动说权限不够,加权限也不行.
请问怎么办.
Reply Favorite View the author
All Replies
cxbii
deepin
2014-06-18 18:13
#1
请详细说下是什么软件。
没有权限可能是没有可执行的权限,当然权限可分读、写和执行
Reply View the author
js2fj5zqh
deepin
2014-06-19 16:33
#2
Linux) # Linux Wed Apr 13 17:19:36 PDT 2005
    # Tweak DISPLAY var setting logic for SuSE 11. RKB Feb 28 2012
    #
    alias -x echo=print                # NX5P23 use print so \r works correctly.
    export PATH=.:/bin:/usr/bin:/etc:/usr/contrib/bin:/usr/local/bin{PATH}
    #
    # Set the display var if not already set, and export it.
#   : ${DISPLAY:=`who am i |tr -d [\(-\)] |awk '{print $NF}' |cut -d. -f1`:0.0}
#   : ${DISPLAY:=`who am i |tr -d [\(-\)] |awk '{print $NF}'`:0.0}
    : ${DISPLAY:=`who am i |tr -d '[(-)]' |awk '{print $NF}'`:0.0}
    export DISPLAY
    #
    [ -x /usr/bin/X11/xset ] && X11_DIR=/usr/bin/X11 # Suse X11 exe's.
    [ -x /usr/bin/xset ] && X11_DIR=/usr/bin/X11/      # Red Hat X11 exe's.          888888888888
    #
    # Set LD_LIBRARY_PATH for Linux shared libs. NX4P11.
    if [ -z "$LD_LIBRARY_PATH" ] ; then # It's NOT set so set it.
         LD_LIBRARY_PATH=/usr/libUGLIBS
    else # It was set. Check it & prepend UGLIBS if not found.
         echo $LD_LIBRARY_PATH | grep "$UGLIBS" >$NU 2>$NU || {
           LD_LIBRARY_PATH=$UGLIBSLD_LIBRARY_PATH  ;}
    fi
    export LD_LIBRARY_PATH
    #
  ;;
............中间省略
# Now run it using the appropriate method.
  if   [ -n "$USING_XWINDOWS" -a -z "$PAUSE" ] ; then # Windows, no pause.
                                                                                                                                                               # zqh,cop     $X11_DIR/xterm -sb -sl ${SL_NUM} -T `basename $1` -e /bin/ksh -c '{               #88888888888
         export LD_LIBRARY_PATH='$LD_LIBRARY_PATH'  # Force into subshell.
         export LIBPATH='$LIBPATH'    # Force into subshell.(AIX)
         '"$*"' # Execute the arguments.
       }' &  # End of args to xterm.
  elif [ -n "$USING_XWINDOWS" -a -n "$PAUSE" ] ; then # Windows with pause
       $X11_DIR/xterm -sb -sl ${SL_NUM} -T `basename $1` -e /bin/ksh -c '{
         export LD_LIBRARY_PATH='$LD_LIBRARY_PATH'  # Force into subshell.
         export LIBPATH='$LIBPATH'    # Force into subshell.(AIX)
         '"$*"' # Execute the arguments.
         echo "\n\t\tPress to continue \c" ; read CR
       }' &  # End of args to xterm.
  elif [ -z "$USING_XWINDOWS" -a -z "$PAUSE" ] ; then # No windows, no pause.
       $*    # Just Execute the passed arguments.
  elif [ -z "$USING_XWINDOWS" -a -n "$PAUSE" ] ; then # No windows, with pause.
       $*    # Execute the passed arguments and then 'CR to continue'.
       echo "\n\t\tPress to continue \c" ; read CR
  fi
  return 0
} # End Execute

装的是ug nx8.5,以上为ug_ment的内容。
加了注释888888888888的2句。提示说下一句有误。找不到/usr/bin/X11/ /xterm,在2013中安装时,我将上句最后的/去掉就行了,但2014中/usr/bin/下的x11是软链到本文件夹"."的,而bin中没有xterm.我将上句的路径改成/lib/terminfo/x再执行.原来终端执行时是弹出启动菜单窗口,选择要运行的模块.但一选nx模块就提示找不到/usr/bin/X11/ /xterm,启动不了.但修改后终端中不再弹出窗口,而是终端中直接给出选项,输入nx相关的号码回车到是可以正常启动.但不在终端直接运行还是不行.
Reply View the author
cxbii
deepin
2014-06-19 17:48
#3
这样的话,你可以试试在其他发行版本上安装看看,我想检查看看是不是这个软件自己的问题
Reply View the author
js2fj5zqh
deepin
2014-06-19 20:08
#4
在2013中安装没问题、如我3楼所说
Reply View the author
cxbii
deepin
2014-06-19 20:36
#5
在2013中安装没问题、如我3楼所说
已经记录
Reply View the author
electricface
deepin
2014-06-19 22:32
#6
file /usr/bin/X11
/usr/bin/X11: symbolic link to `.'

那么 /usr/bin/X11/xterm 就是 在 /usr/bin/xterm
安装一下软件包 xterm 是否有效果?
Reply View the author
js2fj5zqh
deepin
2014-06-21 20:02
#7
file /usr/bin/X11
/usr/bin/X11: symbolic link to `.'

那么 /usr/bin/X11/xterm 就是 在 /usr/bin/xterm
安装一下软件包 xterm 是否有效果?

能把安装方法给我吗?
Reply View the author