How to install yeoman in Ubuntu 14.04? - angularjs

I want to create projects on angular, I used these instructionAll set, but when you call commandss: Install yo (yeoman) in Ubuntu 14.04
All set, but when you call command yo angular displayed error:
yo: command not found
How to fix it?

Quick fix is to put the following in your .bashrc file:
export PATH=/usr/local/share/npm/bin:$PATH
See more here

Are you sure you followed all those steps?
Did you install both yeoman and the angular-generator with the -g flag?
Does the npm command work?
I'd check your .profile file to see if the PATH to npm/bin is included there.

Related

Where to get ajaxmin.exe?

I want to minify my js and css through command prompt using ajaxmin. Can someone provide the link for this. This https://archive.codeplex.com/?p=ajaxmin does not have the exe
In case anyone needs it, you can download the installer or portable from here.
The source code and binary releases are now available on Microsoft's GitHub repo.
Microsoft Ajax Minifier v5.14 is available to download from here: https://github.com/Microsoft/ajaxmin/releases/tag/v5.14
The zip archive release contains a "AjaxMinSetup.msi" file, which will install the "AjaxMin.exe" in your Program Files folder.
Ok. Here is what I did:
npm install uglify-es -g
uglifyjs File.js --mangle --compress --verbose --warn --timings --output minfiedFile.min.js
for more https://www.npmjs.com/package/uglify-es

OpenMPI can't be compiled - possible collision?

I have installed openmpi by using this link http://lsi.ugr.es/~jmantas/pdp/ayuda/datos/instalaciones/Install_OpenMPI_en.pdf
Howeere, I was getting error in compilation stage:
/bin/sh: /usr/lib64/openmpi/bin/mpicc: No such file or directory
Then I was suggested to install openmpi-devel, but then after installing , I get error which is described here
https://stackoverflow.com/questions/31543045/openmpi-undefined-reference
The problem is that I don't know how to resolve this problem. I see that openmpi is installed with dnf search openmpi, but the command which mpicc is not working. When I installed manually from the first link it seems that I have some collision with commands in /home/$USER/.openmpi folder. Should I remove this folder and try something else?

How to install cjson properly in Ubuntu 14.0LTS?

I am new in json and I don't know how to use but I found compare to XML json is better so, I am learning json in C programming in Ubuntu 14.0LTS.
I followed https://linuxprograms.wordpress.com/2010/05/20/install-json-c-in-linux/.
In this link, I installed libjson0 with the help of first command but when I installed libjson – debug symbols package with the help of second command which is mentioned in link then showing "E: Unable to locate package libjson0-dbg".
Also I gone through https://github.com/json-c/json-c. After cloning moved to json-c directory, in json-c directory I did sh autogen.sh then showing "autogen.sh: 2: autogen.sh: autoreconf: not found".
Why autoreconf is not works ? When I installed CppUTest and other stuffs then it works.
I also install build-essential which found in google for above problems but it can't works for me.
How can I installed cjson in a proper manner and how to use with the C-programms.
Try below commands:
$ sudo apt-get install libjson-glib-1.0-0 libjson-glib-1.0-0-dev
If you want to debug your programs and see the various steps of serializing/deserializing you can also install the libjson-glib – debug symbols package
$ sudo apt-get install libjson-glib-1.0-0-dbg
For documentation related to json-glib, you must install the following package
$ sudo apt-get install libjson-glib-1.0-0-doc
This documentation will then be available in file:///usr/share/gtk-doc/html/json-glib/index.html
Maybe your problem is related with the path.
The library is installed correctlly but you have tot tell the system where. Here a post on how to do it in Ubuntu How to set the environmental variable LD_LIBRARY_PATH in linux

Mac running c program using gcc

Whenever I try to compile my c program on mac it gives the following error. I am completely clueless about it.
'sys/cdefs.h' file not found
have you installed "Xcode Command Line Tools" ? just install it in your terminal.
sudo xcode-select --install
Install Xcode, if you haven't already.
Then, from Terminal do the following to avoid future similar (not necessary just for this, I don't think) issues in future:
xcode-select --install
This will automatically download and install the latest XCode Command Line Tools.
From Xcode 4.3, the Xcode is installed from Mac App Store. By default, there is no command line tools. Probably you have missed it. They can be installed using the Components tab of the Downloads preferences panel.

Installing flex (lexical analyzer) on Mac

Can someone tell me how I can install flex (lexical analyzer) on my Mac? I searched everywhere on google and I can't find it. I have the universal binary and I extracted it to my desktop but I have no idea where to go from here. Any help would be greatly appreciated!
Try using Homebrew (Packet manager for Mac) and use the following command :-
brew install flex
You can use macports to install flex
You can always install from source. Download the tarball from the flex site, extract it, cd to the directory where you extracted it, and run the following:
./configure
make
make install
make clean
Assuming you have make and a C compiler on your Mac, which I believe all Macs have.
Flex is shipped with the xCode Command line tools; you only got to install them via xcode > preferences > downloads > Command line tools. This also includes gcc (Clang).
This info can help to somebody to save time:
Just today I have try to install FLEX 2.5.39 from sources.
Make - fails.
After some thoughts I have decide to try older archives.
2.5.38 - fail
2.5.37 - OK
It seems on now() = 2015-03-15, macport also uses 2.5.37 build.

Resources