ExifTool Forum

ExifTool => Install Problems => Topic started by: HollowDeckAlert on May 14, 2021, 06:25:17 AM

Title: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 14, 2021, 06:25:17 AM
Hi,
I need to install ExifTool on a remote system (Debian Unix) and have no permission to install at /usr/local/bin. I have very limited knowledge on how and were to change these settings to a different path.
Can anyone give me directions?

thanks!
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: StarGeek on May 14, 2021, 10:47:59 AM
Did you try the instructions listed under Install - Unix Platforms (https://exiftool.org/install.html#Unix)?

From other posts Phil has made here, I believe you just need to extract exiftool to a directory and add that directory to your path.  And Perl must be installed as well.  The
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 14, 2021, 07:35:21 PM
Hi StarGeek,
yes, I followed the instructions.
I could run perl Makefile.PL
make test also passes without any issues.

But I get the error
> ERROR: Can't create '/usr/local/bin'
>
> Do not have write permissions on '/usr/local/bin'
at -e line 1.
>
> make: *** [Makefile:1521: pure_site_install] Error 13

So I conclude that I need to change the settings for the path where the install-routine should install exifTool.
It can not be the standard usr/local/bin.

My question is where I can edit the setting for the install routine?

Title: Re: Can't create '/usr/local/bin' no write permission
Post by: StarGeek on May 14, 2021, 07:57:23 PM
This will need Phil's attention, as it's not something I can really help with.  I suspect he's spending a lot of time out enjoying good weather, so you might want to hit the "Notify" link above to get alerted when there's a response.
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 14, 2021, 08:22:43 PM
Hi StarGeek,
Thanks for your support. I tagged "notify" and would be grateful for any help. This is about an application to help track illegal waste deposits for our community.
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: Phil Harvey on May 15, 2021, 06:16:41 AM
All you need to do is copy "exiftool" and the "lib" directory to anywhere in your path.  You don't need to run the installer to be able to use exiftool.

- Phil
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: Alan Clifford on May 15, 2021, 07:04:47 AM
Quote from: HollowDeckAlert on May 14, 2021, 06:25:17 AM
... no permission to install at /usr/local/bin.

Just checking - you did use sudo when you tried to install?
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 15, 2021, 02:18:51 PM
Hi Alan,
the bash shell at the provider does not recognize the sudo prefix.
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 15, 2021, 02:30:57 PM
Quote from: Phil Harvey on May 15, 2021, 06:16:41 AM
All you need to do is copy "exiftool" and the "lib" directory to anywhere in your path.  You don't need to run the installer to be able to use exiftool.

- Phil
Hi Phil,
Although "make test" works fine, I can not execute from "exiftool" when I am in this folder.

That's what it looks like:

(uiserver):u96034202:~/bin/exifTool$ make test

All tests successful.
Files=103, Tests=555, 35 wallclock secs ( 0.39 usr  0.13 sys + 31.14 cusr  1.64                          csys = 33.30 CPU)
Result: PASS
<--- works

(uiserver):u96034202:~/bin/exifTool$ exiftool
-bash: exiftool: command not found       <--- why?

Title: Re: Can't create '/usr/local/bin' no write permission
Post by: StarGeek on May 15, 2021, 02:52:15 PM
Try
./exiftool

I remember having to prepend the ./ on some other occasions when I was dealing with a bash.
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: Alan Clifford on May 15, 2021, 04:12:07 PM
It will be because the current directory is not in the path.

It is likely that ~/bin is already in the path so put exiftool in there. Also the lib directory, ie ~/bin/lib

You can check the status of the path with

echo $PATH
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 15, 2021, 08:00:18 PM
Quote from: StarGeek on May 15, 2021, 02:52:15 PM
Try
./exiftool

I remember having to prepend the ./ on some other occasions when I was dealing with a bash.
Thanks a lot. That worked.
Title: Re: Can't create '/usr/local/bin' no write permission
Post by: HollowDeckAlert on May 15, 2021, 08:16:15 PM
Quote from: Alan Clifford on May 15, 2021, 04:12:07 PM
It will be because the current directory is not in the path.

It is likely that ~/bin is already in the path so put exiftool in there. Also the lib directory, ie ~/bin/lib

You can check the status of the path with

echo $PATH
Thanks. This path was not included. I can not find ~/.profile, or ~/.bash_profile.

./exiftool works and now I will have a look why the wordpress plugin can not access this file although I hand over the absolute path.
Thanks to all.