jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
364 stars 31 forks source link

issues with running taskopen #113

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi all, many thanks for this potentially fantastic extension of taskwarrior. I am having some problems to run taskopen. I am not a not very experienced user, so please be patient with me.

Installation I did:

sudo make PREFIX=/usr/local/
sudo make PREFIX=/usr/local/ install

The error: When running taskopen on an ID, I get:

dyld: lazy symbol binding failed: Symbol not found: _Perl_xs_handshake
  Referenced from: /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/auto/JSON/XS/XS.bundle
  Expected in: flat namespace

dyld: Symbol not found: _Perl_xs_handshake
  Referenced from: /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/auto/JSON/XS/XS.bundle
  Expected in: flat namespace

Things I believe are useful for you to help: I installed perl from homebrew and the JSON module via sudo cpan install JSON

perl -V:

Summary of my perl5 (revision 5 version 28 subversion 0) configuration:

  Platform:
    osname=darwin
    osvers=17.7.0
    archname=darwin-thread-multi-2level
    uname='darwin dhcp-132-092.nikhef.nl 17.7.0 darwin kernel version 17.7.0: thu jun 21 22:53:14 pdt 2018; root:xnu-4570.71.2~1release_x86_64 x86_64 '
    config_args='-des -Dprefix=/usr/local/Cellar/perl/5.28.0 -Dprivlib=/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0 -Dsitelib=/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0 -Dotherlibdirs=/usr/local/lib/perl5/site_perl/5.28.0 -Dperlpath=/usr/local/opt/perl/bin/perl -Dstartperl=#!/usr/local/opt/perl/bin/perl -Dman1dir=/usr/local/Cellar/perl/5.28.0/share/man/man1 -Dman3dir=/usr/local/Cellar/perl/5.28.0/share/man/man3 -Duseshrplib -Duselargefiles -Dusethreads'
    hint=recommended
    useposix=true
    d_sigaction=define
    useithreads=define
    usemultiplicity=define
    use64bitint=define
    use64bitall=define
    uselongdouble=undef
    usemymalloc=n
    default_inc_excludes_dot=define
    bincompat5005=undef
  Compiler:
    cc='cc'
    ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV'
    optimize='-O3'
    cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
    ccversion=''
    gccversion='4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)'
    gccosandvers=''
    intsize=4
    longsize=8
    ptrsize=8
    doublesize=8
    byteorder=12345678
    doublekind=3
    d_longlong=define
    longlongsize=8
    d_longdbl=define
    longdblsize=16
    longdblkind=3
    ivtype='long'
    ivsize=8
    nvtype='double'
    nvsize=8
    Off_t='off_t'
    lseeksize=8
    alignbytes=8
    prototype=define
  Linker and Libraries:
    ld='cc'
    ldflags =' -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/local/lib'
    libpth=/usr/local/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/libxml2 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/apache2 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib /usr/lib
    libs=-lpthread -lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-lpthread -ldl -lm -lutil -lc
    libc=
    so=dylib
    useshrplib=true
    libperl=libperl.dylib
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs
    dlext=bundle
    d_dlsymun=undef
    ccdlflags=' '
    cccdlflags=' '
    lddlflags=' -mmacosx-version-min=10.13 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong'

Characteristics of this binary (from libperl):
  Compile-time options:
    HAS_TIMES
    MULTIPLICITY
    PERLIO_LAYERS
    PERL_COPY_ON_WRITE
    PERL_DONT_CREATE_GVSV
    PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP
    PERL_OP_PARENT
    PERL_PRESERVE_IVUV
    PERL_USE_SAFE_PUTENV
    USE_64_BIT_ALL
    USE_64_BIT_INT
    USE_ITHREADS
    USE_LARGE_FILES
    USE_LOCALE
    USE_LOCALE_COLLATE
    USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC
    USE_LOCALE_TIME
    USE_PERLIO
    USE_PERL_ATOF
    USE_REENTRANT_API
  Built under darwin
  Compiled at Sep 13 2018 10:11:33
  %ENV:
    PERL5LIB="/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0"
  @INC:
    /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level
    /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0
    /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level
    /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0
    /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level
    /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0
    /usr/local/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level
    /usr/local/lib/perl5/site_perl/5.28.0

Does anyone have an idea what I can try to make taskopen running? If you need further information, please let me know. Thanks in advance for your help! Best, lo002

jschlatow commented 6 years ago

@lo002 thanks for the detailed report. Unfortunately, I do not have a macos device to reproduce your problem. However, I found a post on stackoverflow that might be helpful.

ghost commented 6 years ago

Hi @ValiValpas, many thanks. This must have slipped through when I was searching for it myself. I'll give it a try. Cheers, Tim

ghost commented 6 years ago

For future reference: Before installing, I had to point to the correct perl-installation in the taskopen file, i.e. I changed: #!/usr/bin/perl -w -CLASo into #!/usr/local/bin/perl -w -CLASo

Seems to work smoothly now. Thanks for your help!