License information is stored in the preferences file. This means that if you license the product as a particular user, the license information is stored in that user's prefs file. This can be inconvenient if you are trying to use PGP Command Line as different users on the same machine.
In 10.2.1 we started creating a "global" preferences file to store the license information for the entire machine. If you are running 10.2.1 and licensed PGP Command Line as the root user, then hopefully every user will be licensed. But if you licensed as a different user (who cannot write to the global preferences location) then only the user(s) who license PGP Command Line will have a valid license (unless users are also sharing the same PGP_HOME_DIRECTORY).
So, if you are running 10.2.1, you could try re-licesning as root. If you are not running that version (or cannot license as root), then look at the "File information" section after running "pgp --version --verbose". The "home directory" values are likely different. One way you can try to fix this is for the "failing" invocation to set "--home-dir" to point to the location of the home directory of the "working" location.
Regards,