jschlatow / taskopen

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

Installation Issue: throwing "error 71" #114

Closed apkawel closed 5 years ago

apkawel commented 5 years ago
$ make PREFIX=/usr
gzip -c doc/man/taskopen.1 > doc/man/taskopen.1.gz
gzip -c doc/man/taskopenrc.5 > doc/man/taskopenrc.5.gz
sed s',#PATH_EXT=.*,&\nPATH_EXT=/usr/share/taskopen/scripts,' taskopen > taskopen.pl

$ make PREFIX=/usr install
gzip -c doc/man/taskopen.1 > doc/man/taskopen.1.gz
gzip -c doc/man/taskopenrc.5 > doc/man/taskopenrc.5.gz
sed s',#PATH_EXT=.*,&\nPATH_EXT=/usr/share/taskopen/scripts,' taskopen > taskopen.pl
mkdir -p //usr/bin
install -m 0755 taskopen.pl //usr/bin/taskopen
install: //usr/bin/taskopen: Operation not permitted
make: *** [install] Error 71
apkawel commented 5 years ago

As a follow-up, I tried:

$ sudo make PREFIX=/usr/local/

and

$ sudo make PREFIX=/usr/local/ install

and it seemed to install properly.

But when I tried using taskopen, this:

$ taskopen 259
-bash: /usr/local/bin/taskopen: /usr/local/bin/perl: bad interpreter: No such file or directory
Smingvin commented 5 years ago

I'm having the same issue.

MacOS Sierra 10.12.4

jschlatow commented 5 years ago

@apkawel sorry for the late reply, I must have missed this issue

Taskopen installed correctly but it cannot find the perl binary. It appears you changed the perl path into /usr/local/bin/perl as mentioned in #113. Can you please run which perl to check where your perl binary is installed?

@Smingvin do you mean you have the same issue with installing taskopen or the same issue executing taskopen?

jschlatow commented 5 years ago

I made a small modification to the install script. Please checkout the new version of the master branch and try reinstalling taskopen.

apkawel commented 5 years ago

/usr/bin/perl On Nov 2, 2018, 08:16 -0400, Johannes Schlatow notifications@github.com, wrote:

@apkawel sorry for the late reply, I must have missed this issue Taskopen installed correctly but it cannot find the perl binary. It appears you changed the perl path into /usr/local/bin/perl as mentioned in #113. Can you please run which perl to check where your perl binary is installed? @Smingvin do you mean you have the same issue with installing taskopen or the same issue executing taskopen? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Smingvin commented 5 years ago

@ValiValpas

Both issues.

First I got the same error when installing. Then I installed to usr/local like apkawel. When I tried to run it, I get the same error as apkawel. Also, my pearl installation is at "/usr/bin/perl" just as apkawel.

I redownloaded and tried to reinstall, but when I run make PREFIX=/usr I get the following error:

gzip -c doc/man/taskopen.1 > doc/man/taskopen.1.gz
gzip -c doc/man/taskopenrc.5 > doc/man/taskopenrc.5.gz
sed s',#PATH_EXT=.*,&\nPATH_EXT=/usr/share/taskopen/scripts,' taskopen > taskopen.pl
sed -i s',/usr/bin/perl,/usr/local/bin/perl,' taskopen.pl
sed: 1: "taskopen.pl": undefined label 'askopen.pl'
make: *** [taskopen.pl] Error 1

Thanks so much for helping out!

Smingvin commented 5 years ago

I fixed it!

I added '.bak' next to -i in that sed line you added in the last commit, like so:

sed -i '.bak' s',/usr/bin/perl,$(PERLPATH),' taskopen.pl

(as instructed here)

Then I tried installing it using the default instructions and it didn't work.

But then I tried @apkawel's

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

And now it works.