Cannot execute shell script

:warning: IMPORTANT, please fill the questions

We assume you are using Bitnami to deploy your application.

  • Which version of the application are you using?:
    2.5.7-1

  • Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, …) or VM (VMDK, VBOX):
    installer on WSL

  • Have you installed any plugin or modified any configuration file?:
    mysql & changed some console colours

  • Describe here your question/suggestion/issue (expected and actual results):
    Using WSL Bash & Bitnami I have installed exiftool using sudo apt-get install exiftool. When called from the command line this works like a charm. A Ruby script calling exiftool fails when called from within the Bitnami environment but works properly after exiting Bitnami…

I’m new to Bitnami but the help page makes running a shell command from within Bitnami sound simple, so I’m probably misunderstanding something pretty fundamental, Could someone explain what’s happening here please.

Magpie@Heron:~ cd ~/rubystack-2.5.7-1/projects
Magpie@Heron:~/rubystack-2.5.7-1/projects ../rubyconsole
Magpie@Heron:~/rubystack-2.5.7-1/projects exiftool  /mnt/d/Projects/2020/Maps/photos/*.jpg | grep GPS | grep Position
GPS Position                    : 51 deg 49' 13.89" N, 0 deg 40' 13.52" W
Magpie@Heron:~/rubystack-2.5.7-1/projects ruby ~/rubystack-2.5.7-1/projects/playC.rb
/home/Magpie/rubystack-2.5.7-1/projects/playC.rb:78: warning: Insecure world writable dir /home/Magpie/rubystack-2.5.7-1/postgresql/bin in PATH, mode 040777
given is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 48.
when is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 49.
when is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 50.
when is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 51.
/usr/bin/perl: symbol lookup error: /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/auto/File/Glob/Glob.so: undefined symbol: Perl_xs_apiversion_bootcheck
Magpie@Heron:~/rubystack-2.5.7-1/projects exit
exit
Magpie@Heron:~/rubystack-2.5.7-1/projects ruby ~/rubystack-2.5.7-1/projects/playC.rb
/home/Magpie/rubystack-2.5.7-1/projects/playC.rb:78: warning: Insecure world writable dir /mnt/c/WINDOWS/system32 in PATH, mode 040777
GPS Position                    : 51 deg 49' 13.89" N, 0 deg 40' 13.52" W
Magpie@Heron:~/rubystack-2.5.7-1/projects
  • Steps to reproduce the issue (if relevant):
~/rubystack-2.5.7-1/projects,playC.rb is:

#!/usr/bin/env ruby
system("exiftool" " /mnt/d/Projects/2020/Maps/photos/*.jpg" " | grep GPS | grep Position" )
###

  • Copy the apache log (if relevant):
PASTE HERE

Hi @magpie,

We have a Support Tool that will gather relevant information for us to analyze your configuration and logs. Could you please execute it on the machine where the stack is running by following the steps described in the guide below?

How to Run the Bitnami Support Tool

Please note that you need to paste the code ID that is shown at the end.

Regards,
Michiel

Hi Michiel,

The code is
2e6a26b0-8dd1-5ce8-1e4b-0331f7ee07ec

However I don’t have a server or cloud account. Sorry to be a pain, how do I get the file to you?

thanks

Hi @magpie,

The bnsupport bundle is uploaded as part of the bnsupport tool execution. According to the error message you are getting, it looks like when running your script in the Bitnami rubyconsole is using the system Perl (/usr/bin/perl) instead of the one installed into the Bitnami directory (installdir/common/bin/perl).

/usr/bin/perl: symbol lookup error: /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/auto/File/Glob/Glob.so: undefined symbol: Perl_xs_apiversion_bootcheck

Can you load the rubyconsole again and run the commands below?

which ruby
which perl
which exiftool
env

Apart from that, we haven’t tested WSL. Can you try using our virtual machine? You can download them from

https://bitnami.com/stack/ruby/virtual-machine

Hi gongomgra, I’m grateful for your help, especially as I’m using something untested.

I’m posting 5 chunks: the info you asked for from rubyconsole; a comparison without rubyconsole, together with my startup files ror.sh, .bitnamirc, and preload.sh, just in case I’ve broken something.

I hope it’s useful.

From freshly loaded rubyconsole 
```
Magpie@Heron:~/rubystack-2.5.7-1/projects which ruby
/home/Magpie/rubystack-2.5.7-1/ruby/bin/ruby
Magpie@Heron:~/rubystack-2.5.7-1/projects which perl
/home/Magpie/rubystack-2.5.7-1/perl/bin/perl
Magpie@Heron:~/rubystack-2.5.7-1/projects which exiftool
/usr/bin/exiftool
Magpie@Heron:~/rubystack-2.5.7-1/projects env
LDFLAGS= -L/home/Magpie/rubystack-2.5.7-1/memcached/lib -L/home/Magpie/rubystack-2.5.7-1/perl/lib -L/home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/CORE -L/home/Magpie/rubystack-2.5.7-1/git/lib -L/home/Magpie/rubystack-2.5.7-1/nginx/lib -L/home/Magpie/rubystack-2.5.7-1/redis/lib -L/home/Magpie/rubystack-2.5.7-1/sqlite/lib -L/home/Magpie/rubystack-2.5.7-1/varnish/lib -L/home/Magpie/rubystack-2.5.7-1/varnish/lib/varnish -L/home/Magpie/rubystack-2.5.7-1/varnish/lib/varnish/vmods -L/home/Magpie/rubystack-2.5.7-1/postgresql/lib -L/home/Magpie/rubystack-2.5.7-1/python/lib -L/home/Magpie/rubystack-2.5.7-1/mysql/lib -L/home/Magpie/rubystack-2.5.7-1/apache2/lib -L/home/Magpie/rubystack-2.5.7-1/subversion/lib -L/home/Magpie/rubystack-2.5.7-1/common/lib -L/home/Magpie/rubystack-2.5.7-1/common/lib64
rvm_bin_path=/home/Magpie/rubystack-2.5.7-1/rvm/bin
SHELL=/bin/bash
TERM=xterm-256color
WSLENV=
NAME=Heron
USER=Magpie
LS_COLORS=rs=0:fi=00;37:di=01;36:ex=00:ln=01;33:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=01;36:st=37;44:fi=00;00:*.sh=01;35:*.rb=01;35:*.txt=00;00:*.csv=00;00:tw=30;42
WSL_DISTRO_NAME=Legacy
_system_type=Linux
GREP_COLORS=sl=40;37:cx=40;37:mt=40;91:fn=40;38;5;213:ln=40;93:bn=40;38;5;118:se=49;39
rvm_path=/home/Magpie/rubystack-2.5.7-1/rvm
HOSTTYPE=x86_64
rvm_prefix=/home/Magpie/rubystack-2.5.7-1
PATH=/home/Magpie/rubystack-2.5.7-1/rvm/bin:/home/Magpie/rubystack-2.5.7-1/memcached/bin:/home/Magpie/rubystack-2.5.7-1/perl/bin:/home/Magpie/rubystack-2.5.7-1/git/bin:/home/Magpie/rubystack-2.5.7-1/nginx/sbin:/home/Magpie/rubystack-2.5.7-1/redis/bin:/home/Magpie/rubystack-2.5.7-1/nodejs/bin:/home/Magpie/rubystack-2.5.7-1/sphinx/bin:/home/Magpie/rubystack-2.5.7-1/sqlite/bin:/home/Magpie/rubystack-2.5.7-1/varnish/bin:/home/Magpie/rubystack-2.5.7-1/postgresql/bin:/home/Magpie/rubystack-2.5.7-1/php/bin:/home/Magpie/rubystack-2.5.7-1/python/bin:/home/Magpie/rubystack-2.5.7-1/mysql/bin:/home/Magpie/rubystack-2.5.7-1/letsencrypt/:/home/Magpie/rubystack-2.5.7-1/apache2/bin:/home/Magpie/rubystack-2.5.7-1/subversion/bin:/home/Magpie/rubystack-2.5.7-1/ruby/bin:/home/Magpie/rubystack-2.5.7-1/common/bin:/home/Magpie/bin:/home/Magpie/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/d/Projects/Ruby26-x64/bin:/mnt/c/Users/Swan/AppData/Local/Microsoft/WindowsApps:/snap/bin
PWD=/home/Magpie/rubystack-2.5.7-1/projects
BITNAMI_ROOT=/home/Magpie/rubystack-2.5.7-1
LANG=en_GB.UTF-8
_system_arch=x86_64
PS1=\[\033[38;5;206m\]\u\[\]\[\033[38;5;15m\]@\[\]\[\033[38;5;206m\]\H:\[\]\[\033[38;5;45m\]\w\[\]\[\033[38;5;15m\] \[\]
_system_version=16.04
rvm_version=1.29.1 (manual)
HOME=/home/Magpie
SHLVL=3
CFLAGS= -I/home/Magpie/rubystack-2.5.7-1/sqlite/include -I/home/Magpie/rubystack-2.5.7-1/varnish/include -I/home/Magpie/rubystack-2.5.7-1/postgresql/include -I/home/Magpie/rubystack-2.5.7-1/python/include -I/home/Magpie/rubystack-2.5.7-1/mysql/include -I/home/Magpie/rubystack-2.5.7-1/apache2/include -I/home/Magpie/rubystack-2.5.7-1/subversion/include -I/home/Magpie/rubystack-2.5.7-1/common/include -I/home/Magpie/rubystack-2.5.7-1/common/include
LOGNAME=Magpie
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s
_system_name=Ubuntu
_=/usr/bin/env
Magpie@Heron:~/rubystack-2.5.7-1/projects
```

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Running without rubyconsole

```
Magpie@Heron:~ which ruby
/usr/bin/ruby
Magpie@Heron:~ which perl
/usr/bin/perl
Magpie@Heron:~ which exiftool
/usr/bin/exiftool
Magpie@Heron:~ env
SHELL=/bin/bash
TERM=xterm-256color
WSLENV=
USER=Magpie
NAME=Heron
LS_COLORS=rs=0:fi=00;37:di=01;36:ex=00:ln=01;33:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=01;36:st=37;44:fi=00;00:*.sh=01;35:*.txt=00;00:*.csv=00;00:tw=30;42
WSL_DISTRO_NAME=Legacy
GREP_COLORS=sl=40;37:cx=40;37:mt=40;91:fn=40;38;5;213:ln=40;93:bn=40;38;5;118:se=49;39
HOSTTYPE=x86_64
PATH=/home/Magpie/bin:/home/Magpie/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/d/Projects/Ruby26-x64/bin:/mnt/c/Users/Swan/AppData/Local/Microsoft/WindowsApps:/snap/bin
PWD=/home/Magpie
LANG=en_GB.UTF-8
PS1=\[\033[38;5;208m\]\u\[\]\[\033[38;5;15m\]@\[\]\[\033[38;5;214m\]\H:\[\]\[\033[38;5;46m\]\w\[\]\[\033[38;5;15m\] \[\]
SHLVL=1
HOME=/home/Magpie
LOGNAME=Magpie
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
LESSOPEN=| /usr/bin/lesspipe %s
LESSCLOSE=/usr/bin/lesspipe %s %s
_=/usr/bin/env
Magpie@Heron:~
```
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ror.sh
```
Magpie@Heron:~ cat ror.sh
# ror.sh started 17/11/2019
# made executable with chmod 751 ./ror.sh

# starts the Bitnami  Ruby on Rails environment and moves to project directory

cd ~/rubystack-2.5.7-1/projects
../rubyconsole
Magpie@Heron:~
```

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


```
~/rubystack-2.5.7-1/projects/preload.shMagpie@Heron:~/rubystack-2.5.7-1 cat .bitnamirc

PATH="/home/Magpie/rubystack-2.5.7-1/memcached/bin:/home/Magpie/rubystack-2.5.7-1/perl/bin:/home/Magpie/rubystack-2.5.7-1/git/bin:/home/Magpie/rubystack-2.5.7-1/nginx/sbin:/home/Magpie/rubystack-2.5.7-1/redis/bin:/home/Magpie/rubystack-2.5.7-1/nodejs/bin:/home/Magpie/rubystack-2.5.7-1/sphinx/bin:/home/Magpie/rubystack-2.5.7-1/sqlite/bin:/home/Magpie/rubystack-2.5.7-1/varnish/bin:/home/Magpie/rubystack-2.5.7-1/postgresql/bin:/home/Magpie/rubystack-2.5.7-1/php/bin:/home/Magpie/rubystack-2.5.7-1/python/bin:/home/Magpie/rubystack-2.5.7-1/mysql/bin:/home/Magpie/rubystack-2.5.7-1/letsencrypt/:/home/Magpie/rubystack-2.5.7-1/apache2/bin:/home/Magpie/rubystack-2.5.7-1/subversion/bin:/home/Magpie/rubystack-2.5.7-1/ruby/bin:/home/Magpie/rubystack-2.5.7-1/common/bin:$PATH"
BITNAMI_ROOT="/home/Magpie/rubystack-2.5.7-1"
export BITNAMI_ROOT


if [ "$BASH" != "" -a -s "/home/Magpie/rubystack-2.5.7-1/git/scripts/git-completion.bash" ]; then
    . "/home/Magpie/rubystack-2.5.7-1/git/scripts/git-completion.bash"
fi
GIT_PS1_SHOWDIRTYSTATE=true

if [ -s "/home/Magpie/rubystack-2.5.7-1/rvm/scripts/rvm" ]; then

   export rvm_prefix="/home/Magpie/rubystack-2.5.7-1"
   rvm_path="/home/Magpie/rubystack-2.5.7-1/rvm"
   export rvm_path
   CFLAGS=' -I/home/Magpie/rubystack-2.5.7-1/sqlite/include -I/home/Magpie/rubystack-2.5.7-1/varnish/include -I/home/Magpie/rubystack-2.5.7-1/postgresql/include -I/home/Magpie/rubystack-2.5.7-1/python/include -I/home/Magpie/rubystack-2.5.7-1/mysql/include -I/home/Magpie/rubystack-2.5.7-1/apache2/include -I/home/Magpie/rubystack-2.5.7-1/subversion/include -I/home/Magpie/rubystack-2.5.7-1/common/include -I/home/Magpie/rubystack-2.5.7-1/common/include'
   export CFLAGS
   LDFLAGS=' -L/home/Magpie/rubystack-2.5.7-1/memcached/lib -L/home/Magpie/rubystack-2.5.7-1/perl/lib -L/home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/CORE -L/home/Magpie/rubystack-2.5.7-1/git/lib -L/home/Magpie/rubystack-2.5.7-1/nginx/lib -L/home/Magpie/rubystack-2.5.7-1/redis/lib -L/home/Magpie/rubystack-2.5.7-1/sqlite/lib -L/home/Magpie/rubystack-2.5.7-1/varnish/lib -L/home/Magpie/rubystack-2.5.7-1/varnish/lib/varnish -L/home/Magpie/rubystack-2.5.7-1/varnish/lib/varnish/vmods -L/home/Magpie/rubystack-2.5.7-1/postgresql/lib -L/home/Magpie/rubystack-2.5.7-1/python/lib -L/home/Magpie/rubystack-2.5.7-1/mysql/lib -L/home/Magpie/rubystack-2.5.7-1/apache2/lib -L/home/Magpie/rubystack-2.5.7-1/subversion/lib -L/home/Magpie/rubystack-2.5.7-1/common/lib -L/home/Magpie/rubystack-2.5.7-1/common/lib64'
   export LDFLAGS
   export PATH=/home/Magpie/rubystack-2.5.7-1/rvm/bin:$PATH

   source "/home/Magpie/rubystack-2.5.7-1/rvm/scripts/rvm"
fi

export PS1="\[\033[38;5;206m\]\u\[$(tput sgr0)\]\[\033[38;5;15m\]@\[$(tput sgr0)\]\[\033[38;5;206m\]\H:\[$(tput sgr0)\]\[\033[38;5;45m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"

export LS_COLORS="rs=0:fi=00;37:di=01;36:ex=00:ln=01;33:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=01;36:st=37;44:fi=00;00:*.sh=01;35:*.rb=01;35:*.txt=00;00:*.csv=00;00:tw=30;42"
export GREP_COLORS='sl=40;37:cx=40;37:mt=40;91:fn=40;38;5;213:ln=40;93:bn=40;38;5;118:se=49;39';

~/rubystack-2.5.7-1/projects/preload.shMagpie@Heron:~/rubystack-2.5.7-1
```
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
preload.sh
```
Magpie@Heron:~/rubystack-2.5.7-1/projects cat preload.sh
#! /bin/bash

# preload.sh started 18/01/2020
# made executable with chmod 751 ./preload.sh

# called to provide opening of Bitnami shell by ~/rubystack-2.5.7-1/projects/preload.shMagpie@Heron:~/rubystack-2.5.7-1/.bitnamirc

echo "Starting Ruby on Rail Bitnami environment"
echo "start new project with eg rails new blog --skip-spring --skip-listen"
echo
cd ~/rubystack-2.5.7-1/projects
pwd
ls
echo
```

Hi @magpie,

Everything seems fine in your environment when using the Bitnami console rubyconsole. Can you try running the next commands and posting there the results? Please wrap the console output with three back sticks characters (`) so it gets properly formated or use the “preformatted text” in the post editor

cd ~/rubystack-2.5.7-1/
./rubyconsole
. ./scripts/setenv.sh
echo $PATH
which perl
./ruby/bin/ruby projects/playC.rb

Apart from that, did you have a chance to test it in a virtual machine?

Hi gongomgra

Results are below. I’m reluctant to introduce another layer of complication, This is actually quite a small part of the whole, and if it comes to it I can make a quick standalone shell script to make a results file for Ruby to read.

btw I forgot to say that the directory you mentioned previously (installdir/common/bin/perl) doesn’t exist.

I hope this is formatted better.
Geoff

Magpie@Heron:~/rubystack-2.5.7-1 cd ~/rubystack-2.5.7-1/
Magpie@Heron:~/rubystack-2.5.7-1 ./rubyconsole
tput: unknown terminal "xterm-256color"
tput: unknown terminal "xterm-256color"
tput: unknown terminal "xterm-256color"
tput: unknown terminal "xterm-256color"
tput: unknown terminal "xterm-256color"
Starting Ruby on Rail Bitnami environment
start new project with eg rails new blog --skip-spring --skip-listen

/home/Magpie/rubystack-2.5.7-1/projects
2009                      convert.rb   =home=Magpie=rubystack-2.5.7-1=projects  overlays      preload.sh.keep                                track_md.csv
2014-04-04_15-27_Fri.gpx  country      kml.fmt                                  overview.png  sample                                         tracks
2014-05-08_10-52_Thu.gpx  go.sh        kml_track.fmt                            photos.rb     tmp                                            transcoded.txt
backup                    gpx.fmt      metadata.rb                              playC.rb      TR_190423-105533.gpx                           userdata.gpx
blog                      gpx_wpt.fmt  npp_usage:sudo_npp.sh_file               play.rb       TR_190719-103027 Wndover & Aylesbury 0722.gpx  waypt_md.csv
bnsupport-linux-x64.run   Holiday      outfl                                    preload.sh    TR_190720-134353 River Avon 0720.gpx

Magpie@Heron:~/rubystack-2.5.7-1 . ./scripts/setenv.sh
Magpie@Heron:~/rubystack-2.5.7-1 echo $PATH
/home/Magpie/rubystack-2.5.7-1/rvm/bin:/home/Magpie/rubystack-2.5.7-1/memcached/bin:/home/Magpie/rubystack-2.5.7-1/perl/bin:/home/Magpie/rubystack-2.5.7-1/git/bin:/home/Magpie/rubystack-2.5.7-1/nginx/sbin:/home/Magpie/rubystack-2.5.7-1/redis/bin:/home/Magpie/rubystack-2.5.7-1/nodejs/bin:/home/Magpie/rubystack-2.5.7-1/sphinx/bin:/home/Magpie/rubystack-2.5.7-1/sqlite/bin:/home/Magpie/rubystack-2.5.7-1/varnish/bin:/home/Magpie/rubystack-2.5.7-1/postgresql/bin:/home/Magpie/rubystack-2.5.7-1/php/bin:/home/Magpie/rubystack-2.5.7-1/python/bin:/home/Magpie/rubystack-2.5.7-1/mysql/bin:/home/Magpie/rubystack-2.5.7-1/letsencrypt/:/home/Magpie/rubystack-2.5.7-1/apache2/bin:/home/Magpie/rubystack-2.5.7-1/subversion/bin:/home/Magpie/rubystack-2.5.7-1/ruby/bin:/home/Magpie/rubystack-2.5.7-1/common/bin:/home/Magpie/bin:/home/Magpie/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/d/Projects/Ruby26-x64/bin:/mnt/c/Users/Swan/AppData/Local/Microsoft/WindowsApps:/snap/bin
Magpie@Heron:~/rubystack-2.5.7-1 which perl
/home/Magpie/rubystack-2.5.7-1/perl/bin/perl
Magpie@Heron:~/rubystack-2.5.7-1 ./ruby/bin/ruby projects/playC.rb
playC.rb
projects/playC.rb:79: warning: Insecure world writable dir /mnt/c/WINDOWS/system32 in PATH, mode 040777
given is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 48.
when is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 49.
when is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 50.
when is experimental at /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/File/Glob.pm line 51.
/usr/bin/perl: symbol lookup error: /home/Magpie/rubystack-2.5.7-1/perl/lib/5.16.3/x86_64-linux-thread-multi/auto/File/Glob/Glob.so: undefined symbol: Perl_xs_apiversion_bootcheck
Magpie@Heron:~/rubystack-2.5.7-1

Hi @magpie,

You are right, I pointed to the wrong perl directory in my previous post, the /opt/bitnami/perl is the correct one. Can you try to run the exiftool command directly from the bash console after loading the Bitnami rubyconsole and the setenv.sh script?

Apart from that, please try to reproduce it in the Bitnami Virtual Machine for Ruby. As mentioned previously, we haven’t tested the Windows Subsystem for Linux and it is not officially supported by us.

Yeah, fair enough. I got as far as the first set of error messages I didn’t understand and gave up, too many other things to do. So I’ll find a workround, and if a similar problem appears in a different context in future I’ll invest more time in the VM.
Thanks for your help,
Geoff

Hi @magpie,

Thanks for the info. I’m sorry you couldn’t make it works on top of WSL. I hope you can make it with the virtual machine.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.