zsh-workers
 help / color / mirror / code / Atom feed
From: Coden <codenb@protonmail.com>
To: "Peter A. Castro" <doctor@fruitbat.org>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: Portable rootless ZSH
Date: Wed, 09 Oct 2019 20:07:58 +0000	[thread overview]
Message-ID: <TDwB1Iqe7IWM9v3ll1xTQHtjYH-dEp5OMRUBA341L7O4rccNO-nh6lUSKnXV-6HKFJ4yUlkmfrPeVBqNMxdr6_pIYXR6z40GWl3r3-S_QlM=@protonmail.com> (raw)
In-Reply-To: <20191008204722.GU6761@ming.fruitbat.org>

Peter, thank you for the fast response!

I faced with this:

1. Build ./configure --disable-dynamic --disable-gdbm && make
2. Run ./Src/zsh

(I already have zsh so I have home dir with .zshrc and oh-my-zsh and $ZDOTDIR is /root)

/root/.oh-my-zsh/oh-my-zsh.sh:69: compinit: function definition file not found
/root/.oh-my-zsh/lib/directories.zsh:32: command not found: compdef
/root/.oh-my-zsh/lib/theme-and-appearance.zsh:2: colors: function definition file not found
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:19: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:89: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:104: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:109: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:119: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:129: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:138: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:144: command not found: compdef
/root/.oh-my-zsh/plugins/git/git.plugin.zsh:229: is-at-least: function definition file not found
/root/.oh-my-zsh/custom/themes/powerlevel10k/internal/p10k.zsh:1: is-at-least: function definition file not found

4. As result I've got zsh prompt without any theme.

It looks like something went wrong. Are these errors related with build?

Coden




‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Tuesday, October 8, 2019 11:47 PM, Peter A. Castro <doctor@fruitbat.org> wrote:

> On Tue, Oct 08, 2019 at 06:44:10PM +0000, Coden wrote:
>
> > Hello!
>
> Greetings, Coden,
>
> > I've tried to create portable version zsh along with couple tools which I can run without installation and root access. I've tried build zsh with brew or conda and packaging with modern AppImage but every time I faced with static library paths inside zsh binary.
> > There is no way to plase zsh in any directory and run. Is it right? Could anyone from zsh maintainers help me?
> > My last try to pack zsh to AppImage was described here - https://discourse.appimage.org/t/shell-with-tools-in-appimage/1455/5 . You can find case description. AppImage maintainer recommend me to ask you about the ability to packaging zsh with flexible paths.
>
> I know nothing about AppImage, but looking at what you posted there, it
> seems like the problem is the plethora of zsh modules, though only zle
> is implicated at the moment.
>
> Configure for zsh has options to disable module generation:
>
> --disable-dynamic
>
> Have you tried running configure with that?
> You may lose some functionality this way, though.
>
> You may also find gdbm get's pulled in, which may also be a problem for
> your environment, so disable that too:
>
> --disable-gdbm
>
> % ./configure --disable-dynamic --disable-gdbm
> ...
> zsh configuration
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> zsh version : 5.7.1
> host operating system : x86_64-pc-linux-gnu
> source code location : .
> compiler : gcc
> preprocessor flags :
> executable compiler flags : -Wall -Wmissing-prototypes -O2
> executable linker flags : -s
> library flags : -lnsl -lncursesw -lrt -lm -lc
> installation basename : zsh
> binary install path : /usr/local/bin
> man page install path : /usr/local/share/man
> info install path : /usr/local/share/info
> functions install path : /usr/local/share/zsh/5.7.1/functions
> See config.modules for installed modules and functions.
>
> If you look at config.modules you will see many modules are
> "link=static", including zle.
>
> You can run "./configure --help" to see what other options might be of
> value to you.
>
> Hope that is of some help. Good luck!
>
> > Thanks for responses and advises!
>
> --
>
> --=> Peter A. Castro
> Email: doctor at fruitbat dot org / Peter dot Castro at oracle dot com
> "Cats are just autistic Dogs" -- Dr. Tony Attwood



  reply	other threads:[~2019-10-09 20:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-08 18:44 Coden
2019-10-08 20:47 ` Peter A. Castro
2019-10-09 20:07   ` Coden [this message]
2019-10-11 11:54     ` Coden
2019-10-11 19:32       ` Coden
2019-10-12 21:22         ` Coden
2019-10-12 23:22           ` Bart Schaefer
2019-10-13  0:13             ` Coden
2019-10-13  5:59               ` Bart Schaefer
2019-10-13 23:51                 ` Coden
2020-03-07 13:03                   ` Coden
2019-10-11 13:11     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='TDwB1Iqe7IWM9v3ll1xTQHtjYH-dEp5OMRUBA341L7O4rccNO-nh6lUSKnXV-6HKFJ4yUlkmfrPeVBqNMxdr6_pIYXR6z40GWl3r3-S_QlM=@protonmail.com' \
    --to=codenb@protonmail.com \
    --cc=doctor@fruitbat.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).