If your want to compile code or install ports in ghostbsd, you should install devtools first.
$ sudo pkg install os-generic-userland-devtools
Then you move to the appropriate port directory in /usr/ports.
$ cd /usr/ports/science/XXX
Then change user to root
$ su -
Finally compile and install port.
$ make
$ make install