Answer the question
In order to leave comments, you need to log in
How to assign symlinks correctly?
Hello! I'm trying to run casperjs from a php file, have done it before but always get confused with symlinks. Please explain how to understand such an entry in bash:
$ ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
Answer the question
In order to leave comments, you need to log in
Solved the problem without symlinks. In general, the difficulty was that casperjs did not see phantomjs and the error "did you install phantomjs?" Everything worked when I specified the path to the executable in the php file putenv("PHANTOMJS_EXECUTABLE=C:/phantomjs/bin/phantomjs");
When the command is executed, the shell will execute the pwd command and substitute the result of its execution in the place where pwd is written. Let's say I'm currently in the /tmp/zhopa directory. Then the command will be executed
ln -sf /tmp/zhopa/bin/casperjs /usr/local/bin/casperjs
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question