Thread CPAN -e shell auf shared Hosting einrichten (29 answers)
Opened by bianca at 2020-02-04 22:07

bianca
 2020-02-12 08:25
#191377 #191377
User since
2009-09-13
6976 Artikel
BenutzerIn

user image
Hi haj und Linuxer und Daxim und rosti!
Danke für Eure Mithilfe. Hier ein paar Antworten:

2020-02-09T18:18:54 Linuxer
Kontrolle mit export oder set

Abfrageergebnis zu set (7.1kb):
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
yyyy@xxxx /home/sites/abc/tmp $ set
BASH=/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:histappend:hostcomplete:interactive_comments:login_shell:no_empty_cmd_completion:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="4" [1]="4" [2]="23" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
BASH_VERSION='4.4.23(1)-release'
COLUMNS=190
CONFIG_PROTECT=/usr/share/gnupg/qualified.txt
CONFIG_PROTECT_MASK='/etc/sandbox.d /etc/php/cli-php7.2/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/apache2-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/fonts/fonts.conf /etc/gentoo-release /etc/terminfo /etc/ca-certificates.conf /etc/apache2/conf.d/00_apache_default.conf /etc/apache2/modules.d/99_apache_default.conf /etc/apache2/include.d/hosterxyz_http_to_https.include /etc/apache2/include.d/hosterxyz_require_server_frodo.include /etc/apache2/include.d/hosterxyz_require_server_gandalf.include /etc/apache2/include.d/hosterxyz_require_server_sauron.include /etc/apache2/include.d/hosterxyz_require_server_status.include /etc/fail2ban/jail.d/server-default* /etc/revdep-rebuild /etc/apache2/conf.d/50_hosterxyz_hosterserver.conf /etc/cron.allow /etc/cron.d/hosterxyz-hosterserver /etc/env.d/99hosterxyz-hosterserver /etc/logrotate.d/hosterxyz-hosterserver /etc/procmailrc.scan /etc/procmailrc.spamassassin /etc/profile.d/01-hosterxyz-hosterserver.sh /etc/security/limits.d/01-hosterxyz-hosterserver.conf /etc/conf.d/apache2 /etc/conf.d/keymaps /etc/dovecot/conf.d/10-auth.conf /etc/locale.gen /etc/postfix/aliases /etc/postfix/master.cf /etc/procmailrc /etc/webalizer.conf /etc/sysctl.d/00server-default.conf /etc/bash/bashrc.d/server-default'
DIRSTACK=()
EDITOR=/usr/bin/vim
EUID=1059
GCC_SPECS=
GROUPS=()
HISTFILE=/home/sites/abc/users/yyyy/.bash_history
HISTFILESIZE=-1
HISTSIZE=-1
HOME=/home/sites/abc/users/yyyy
HOSTNAME=hosterserverNNN.hosterxyz.net
HOSTNAME_FQDN=hosterserverNNN.hosterxyz.net
HOSTTYPE=x86_64
IFS=$' \t\n'
INFOPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.32/info:/usr/share/info
LANG=C
LESS='-R -M --shift 5'
LESSOPEN='|lesspipe %s'
LINES=34
LOGNAME=yyyy
LS_COLORS='rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
MACHTYPE=x86_64-pc-linux-gnu
MAIL=/var/mail/yyyy
MAILCHECK=60
MANPAGER=manpager
MANPATH=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.32/man:/usr/lib64/php7.2/man/:/usr/lib64/php7.3/man/:/usr/lib64/php7.4/man/:/usr/local/share/man:/usr/share/man:/usr/share/rust-1.37.0/man
OLDPWD=/home/sites/abc
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PAGER=/usr/bin/less
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/hosterserver/sbin
PIPESTATUS=([0]="0")
PPID=14406
PS1='\[\033]0;\u@\h:\w\007\]\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
PS2='> '
PS4='+ '
PWD=/home/sites/abc/tmp
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=1
SSH_CLIENT='ipadr1 57657 22'
SSH_CONNECTION='ipadr1 57657 ipadr2 22'
SSH_TTY=/dev/pts/0
TERM=xterm
UID=1059
USER=yyyy
_=/bin/bash
gawklibpath_append ()
{
[ -z "$AWKLIBPATH" ] && AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`;
export AWKLIBPATH="$AWKLIBPATH:$*"
}
gawklibpath_default ()
{
unset AWKLIBPATH;
export AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`
}
gawklibpath_prepend ()
{
[ -z "$AWKLIBPATH" ] && AWKLIBPATH=`gawk 'BEGIN {print ENVIRON["AWKLIBPATH"]}'`;
export AWKLIBPATH="$*:$AWKLIBPATH"
}
gawkpath_append ()
{
[ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`;
export AWKPATH="$AWKPATH:$*"
}
gawkpath_default ()
{
unset AWKPATH;
export AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`
}
gawkpath_prepend ()
{
[ -z "$AWKPATH" ] && AWKPATH=`gawk 'BEGIN {print ENVIRON["AWKPATH"]}'`;
export AWKPATH="$*:$AWKPATH"
}


2020-02-09T18:18:54 Linuxer
Das ganze hilft nicht weiter, wenn Du über Dein Profil keinen Zugriff auf make, Compiler (z.B. gcc), etc. hast.

Sollte vorhanden sein. make siehe unten und gcc:
Quote
yyyy@xxxx /home/sites/abc/tmp $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/9.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-9.2.0-r2/work/gcc-9.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/9.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/include/g++-v9 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/9.2.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 9.2.0-r2 p3' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libmudflap --disable-libssp --disable-systemtap --enable-vtable-verify --enable-lto --without-isl --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 9.2.0 (Gentoo 9.2.0-r2 p3)


-------------------------------------------------------------------------------
zu Pfaden:


2020-02-09T18:18:54 Linuxer
Wenn dem so ist, sollte ein perl -Mlocal::lib -MCPAN -e 'shell' funktionieren und das lokale Verzeichnis benutzt werden können.

Quote
yyyy@xxxx /home/sites/abc/tmp $ perl -Mlocal::lib -MCPAN -e 'shell'
Can't locate local/lib.pm in @INC (you may need to install the local::lib module) (@INC contains: /etc/perl /usr/local/lib64/perl5/5.30.1/x86_64-linux /usr/local/lib64/perl5/5.30.1 /usr/lib64/perl5/vendor_perl/5.30.1/x86_64-linux /usr/lib64/perl5/vendor_perl/5.30.1 /usr/local/lib64/perl5 /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.30.1/x86_64-linux /usr/lib64/perl5/5.30.1).
BEGIN failed--compilation aborted.


2020-02-09T20:41:02 haj
Das Verzeichnis /home/sites/abc/users/xyz/perl5/lib/perl5 ist vermutlich das Verzeichnis, in dem Du Deine privaten Module ablegen kannst.

Könnte ich. War mir aber zu tief verschachtelt, deshalb habe ich dafür das Verzeichnis /home/sites/abc/perl5 in meinem per SSH und FTP erreichbaren nicht öffentlichen Bereich des Webservers erstellt.

2020-02-09T20:41:02 haj
Dann wäre das auch das Verzeichnis, das Du für den Bootstrap-Schritt 2 verwenden solltest.

Ja hatte ich. Das Kommando lautete perl Makefile.PL --bootstrap=/home/sites/abc/perl5

2020-02-09T20:41:02 haj
Wo liegt Dein $HOME?

say $ENV{HOME};
Quote
/home/sites/abc/users/yyyy

Eigentlich doof, weil das Moduleverzeichnis höher liegt. Sehe ich jetzt erst. Ich kann die Sache auch hier rein neu installieren, wenn es dann einfacher wird mit den ganzen Pfaden. Soll ich mal versuchen?

2020-02-09T20:41:02 haj
Wenn Schritt 3 geklappt hat, dann müsste irgendwo in Deinem Verzeichnisbaum local/lib.pm liegen.

Ja per FTP gefunden in /home/sites/abc/perl5/lib/perl5/local/

2020-02-09T20:41:02 haj
ein Resultat mit "local" im Directory davor?

Was meinst du mit "Directory davor"?

2020-02-10T06:09:48 rosti
D heißt: local::lib ist Pure Perl und sollte in your home directory installiert sein. Was somit auch möglich ist.

Ist ja da, wird scheinbar aber nicht gefunden. Ich stelle mich wahrscheinlich nur zu doof an mit den Pfaden. Aber auf Linux fühle ich mich sehr sehr unsicher.
-------------------------------------------------------------------------------

2020-02-09T20:41:02 haj
Dazu muss man aber natürlich wissen, welche Startup-Datei das sein könnte.

Kann man das abfragen?

2020-02-09T20:41:02 haj
Was sagen make -v und which make?

Quote
yyyy@xxxx ~ $ make -v
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

yyyy@xxxx ~ $ which make
/usr/bin/make


2020-02-09T20:41:02 haj
Hast Du Module::Build zur Verfügung?

Ja:
Code (perl): (dl )
1
2
use Module::Build;
say $Module::Build::VERSION;

Quote
0.4224


2020-02-09T20:41:02 haj
Was für eine Shell verwendest Du?

PuTTY 0.71 auf Win10 64 Bit
echo $SHELL
Quote
/bin/bash


2020-02-09T20:41:02 haj
Was für ein Betriebssystem / Version ist das?

Quote
linux (Kernel: 4.19.89)


Bitte nochmal um einen Anstoß.
10 print "Hallo"
20 goto 10

View full thread CPAN -e shell auf shared Hosting einrichten