questions about the /app/bin and while loading shared libraries
Mike Guo
hongweig at 163.com
Wed Jan 13 06:13:31 UTC 2016
I tried to
(amd64)ubuntu at mike-snappy:~$ echo $LD_LIBRARY_PATH
no value there.
is there anyone can share with me how to snappy looking for the share library in it?
thanks
Mike
> 在 2016年1月13日,下午2:10,Mike Guo <hongweig at 163.com> 写道:
>
> Hi, All.
>
>
> I tried to build a testing snap app by snap craft.
>
> I got what’s the stage-packages means now, it will use those packages which in our ubuntu store.
>
> so, I plan to do a simple one:
>
> here’s my snapcraft.yml
>
> name: sqlite
> version: 0.1
> vendor: Mike Guo<hongweig at 163.com <mailto:hongweig at 163.com>>
> summary: learning for snappy package
> description:
> the first snappy I create by deb packge which already eixts
> icon: icon.png
>
> parts:
> sqlite:
> plugin: nil
> stage-packages:
> - sqlite
>
> glue:
> plugin: copy
> files:
> snap/usr/bin/sqlite: bin/sqlite
>
>
>
> some explain about why I put the plugin copy there.
> because I found when I used this file, snappy always didn’t copy the sqlite into /apps/bin/, and in the current path, /apps/bin was include it. but other doesn’t. I have to use copy plugin in this file.
>
> weird thing is: I found I don’t need that copy plugin , I just need put the a section into snap/meta/package.yml
>
> like this:
> architectures:
> - amd64
> icon: meta/icon.png
> name: sqlite
> vendor: Mike Guo<hongweig at 163.com <mailto:hongweig at 163.com>>
> version: 0.1
> binaries:
> - name: /usr/bin/sqlite
>
>
> and run snappy build . in snap folder. it will be generate the right binary file to /apps/bin
>
> and another thing is:
>
> when I try to run sqlite.sqlite(which is my app).
>
> it told me :
> amd64)ubuntu at mike-snappy:~$ sqlite.sqlite
> /apps/sqlite.sideload/IKHGTNePOOGB/usr/bin/sqlite: error while loading shared libraries: libsqlite.so.0: cannot open shared object file: No such file or directory
>
>
> but the truth is :all thing is in my apps:
>
> amd64)ubuntu at mike-snappy:~$ ls /apps/sqlite.sideload/current/usr/lib/
> libsqlite.so.0 libsqlite.so.0.8.6
>
>
>
>
> is there anyone can help me about t his?
>
>
> thanks so much
>
>
> Mike
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20160113/29479b9d/attachment.html>
More information about the snappy-app-devel
mailing list