Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    /etc/init.d/中配置自启动,自启动报错缺少动态库,终端执行却没问题

    T Series
    3
    5
    2065
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      vejoker LV 5 last edited by

      捕获.JPG
      终端手动执行没问题

      捕获.JPG
      自启动执行报错

      捕获.JPG
      这里开始执行我的自启动脚本

      捕获.JPG
      这是我的自启动脚本,这里延时10s、20s、1,m都无法启动我的应用

      请教一下我是哪里写的不对?如何修改?

      Q 1 Reply Last reply Reply Quote Share 0
      • Q
        qidarei LV 2 @vejoker last edited by

        @vejoker
        在启动脚本和终端分别输入echo $LD_LIBRARY_PATH看下是不是不一致

        V 1 Reply Last reply Reply Quote Share 0
        • V
          vejoker LV 5 @qidarei last edited by

          @qidarei
          是不一致

          捕获.JPG

          终端输入

          捕获.JPG

          启动脚本

          捕获.JPG
          捕获.JPG

          为什么我新增了一个qtenv.sh脚本也是还是无法定义环境?请教一下我是哪里写的不对?

          E 1 Reply Last reply Reply Quote Share 0
          • E
            emonyr LV 2 @vejoker last edited by

            @vejoker /bin/sh /opt/qtenv.sh 改为 source /opt/qtenv.sh 试试

            V 1 Reply Last reply Reply Quote Share 1
            • V
              vejoker LV 5 @emonyr last edited by

              @emonyr 改source后,没问题了,感谢!

              1 Reply Last reply Reply Quote Share 0
              • 1 / 1
              • First post
                Last post

              Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

              行为准则 | 用户协议 | 隐私权政策