So recently I’ve been tasked with developing a mobile application that makes calls from the REST API that RT has made available for its users and displays some of the information that our organization would like to keep track of.
As the REST 1.0 API didn’t support HTTP Authentication, I aimed to use the REST 2.0 API Extension instead and tried downloading it from Github (https://github.com/bestpractical/rt-extension-rest2)
However, after I cloned the folder and tried to follow the terminal directions, I ran into a bit of a roadblock.
I input the perl command line (perl MakeFile.PL) and then the terminal gave me the following error:
Cannot find the location of RT.pm that defines $RT::LocalPath in: inc /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.4 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-
and directed me to input the path to my rt.pm file. I inputted the path of the rt.pm file as it had been laid out from the github download and my terminal rejected the file path.
After doing this 3 times, my terminal gave me the following error:
Caught an potential prompt infinite loop (inc/Module/Install/RTx.pm|60|Path to directory containing your RT.pm:) at inc/Module/Install/Makefile.pm line 25, line 3.
Does anyone have any tips on how to get past this and how to install the REST 2.0 API and the authentication token package.