Cocos2d Bash Error on Every Terminal Open - cocos2d-js

Problem :
Every time I open my terminal I'll get the bellow error:
bash: export: js/cocos2d-x-3.17/tools/cocos2d-console/bin': not a valid identifier
bash: export:js/cocos2d-x-3.17/templates': not a valid identifier
And here is my $PATH
/usr/share/ant/bin:/home/abc/cocos2d:/home/abc/cocos2d:/home/abc
/cocos2d:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin
Open to all suggestions.Please suggest.Thank you.

Related

ld: 0706-005 Cannot find or open file: /lib/mcrt0.o

I am try to make install the ImageMagick-6.9.10-86 on the AIX system, but error prompted as below :
CCLD magick/libMagickCore-6.Q16.la
/opt/IBM/xlC/16.1.0/bin/.orig/xlc: 1501-210 (W) command option t contains an incorrect subargument
ld: 0706-005 Cannot find or open file: /lib/mcrt0.o
ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
Stop.
make: 1254-004 The error code from the last command is 2.
when I try to use ls -l /lib/mcrt0.o and ls -l /usr/ccs/lib/mcrt0.o command, result as below :
ls: 0653-341 The file /lib/mcrt0.o does not exist.
I only can find crt0.o in the path.

Cannot compile Open CV on Ubuntu 18.04 because of jasper.h not found

I am trying to compile Opencv on Ubuntu 18.04. I installed many dependencies packages but when I run make I get the error:
grfmt_jpeg2000.cpp:59:10: fatal error: jasper/jasper.h: No such file or directory
#include <jasper/jasper.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
I had already jasper installed and installed libjasperreports-java. However the file jasper.h cannot still be found in my system. Is there any library I can install with apt install to get that file? Or am I missing any other library?
EDIT 1
I tried also downloading the opencv_contrib to install extra moduels of openCV but first of all jaspar is not present and secondly setting the build with
cmake -D CMAKE_INSTALL_PREFIX=./ -D CMAKE_BUILD_TYPE=Debug -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ../openCV
returns the error:
Make Error at cmake/OpenCVModule.cmake:352 (message):
Duplicated modules NAMES has been found
while CMakeError.log contains many errors of the type:
Build output check failed:
Regex: 'command line option .* is valid for .* but not for C\+\+'
Output line: 'cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++'

the make.sh for fastdht not work.When running it shows "nm: /usr/lib/libc_r.so:no such file"

I want to install fastdht. So I download source code from github
https://github.com/happyfish100/fastdht
I follow the INSTALL file, run make.sh first.
./make.sh
However, it shows the following error messages.
[root#localhost fastdht]# sh make.sh
make.sh: line 142: warning: here-document at line 2 delimited by end-of-file
(wanted `EOF')
make.sh: line 2: ./a.out: No such file or directory
nm: '/usr/lib/libc_r.so': No such file
nm: '/lib64/libc_r.so': No such file
nm: '/usr/lib64/libc_r.so': No such file
[root#localhost fastdht]#
What's the matter?
Maybe there are some format errors in make.sh.
I create a new file a.sh and type the contents of make.sh in it. When I run a.sh it works!

Puppet exec: shell command returns "could not find command"

It's the first time I'm using an exec with Puppet but I'm not sorting out why it continues returning errors. The command I'm executing consists in a series of symbolic link creations, code is:
exec { "creation_of_symbolic_links":
command => "ln -s link1dest link1name; ln -s link2dest link2name; ... ; ln -s linkNdest linkNname",
path => "/etc", #added just in order to delete an error
}
All linkdests and linknames are absolute paths. The error returned is:
Error: Could not find command 'ln'
Error: /Stage[main]/Main/Node[nodename]/Exec[creation_of symbolic_links]/returns: change from notrun to 0 failed: Could not find command 'ln'
How can I avoid this error?
Please read about the meaning of path parameter in exec resource.
You got an error because path is not properly defined.
Try using:
path => [ '/bin/', '/sbin/' , '/usr/bin/', '/usr/sbin/' ]

Xcode Build error, arm-apple-darwin11-gcc-4.2.1 execvp: No such file or directory

After upgrading to Xcode 4.3.2. I'm getting a metric ton of build errors.
A whole line of them are error code 255
gcc-4.2: error trying to exec '/usr/bin/arm-apple-darwin11-gcc-4.2.1': execvp: No such file or directory
Command /usr/bin/gcc-4.2 failed with exit code 255
I noticed that there is no /usr/bin/arm-apple-darwin11-gcc-4.2.1 file on my machine. Could this be the source of the problem?
What's the output of this command?
$ printenv | grep "CC="
It might be honoring your C Compiler (CC) selection. I was getting similar errors (through cocoapods) and doing an
$ export CC=
fixed it for me.

Resources