Actually, mac os already has OpenGL and it normally works with projects in C ++. Wanted to fasten it to the project on Perl. Faced a problem:

Can't locate OpenGL.pm in @INC (you may need to install the OpenGL module) (@INC contains: /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.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Users/stolz/code/perl/cg/triangle.pl line 3. 

BEGIN failed--compilation aborted at /Users/stolz/code/perl/cg/triangle.pl line 3.

The third line is Use OpenGL;

How do I install this OpenGL module?

    1 answer 1

    In some linux distributions, many perl modules are installed by the regular package installation tool. For example, for gentoo emerge dev-perl/OpenGL .

    If your system does not support installing perl modules, then you should use the installer included with perl:

     perl -MCPAN -e shell 

    When you first run this command, you will need to answer some questions. After that, it may offer to install some more packages for its correct operation. After all this is done, you can give it the install OpenGL command.

    For CPAN installer to work correctly, you may need to have a suitable C compiler (usually gcc). And some other tools for building applications.

    Additional information on perl modules and their installation can be found on cpan.org