Where does Bower install my packages? - zurb-foundation

Ok, be forewarned, I am SUPER noob when it comes to bower. I have a very sketchy basic understanding of what it even is and barely know how to do anything on it. So bear with me here. Also, I'm working on Windows here.
I installed node.js, and then used npm to install bower. After spending half my life trying to find the bower folder, if found it in
C:\Users\ME\AppData\Roaming\npm\node_modules\bower
However, I just installed Foundation via Bower and have NO idea where it installed the Foundation files. I assume from my Google searches that it's in the bower_components folder, but I have no idea where that is. I haven't moved it around or done anything abnormal, so I assume it should just be somewhere pretty standard, but I can't find it anywhere! Any pointers on where to look? I have looked this up online a bunch of times, but either this is super obvious so nobody has ever been noob enough to ask it or I'm just bad at Googling my life problems. Is there a command I can run to find out where this is?

It depends. If you are using -g flag when isntalling, it tells npm or bower to install packages globally. It meens you can use them in the whole system and not only for the one project. In this case they are installed into AppData folder, node_modules for npm and bower_components for bower.
On the other hand, if you don't use -g flag, you are installing packages only for the project which you are actually working on. It is simply the folder where you are when you run the install command. Then folders node_packages and bower_components are created in your actual folder and packages are placed into them.

If you install with -g flag, packages will be install globally. But when you download without -g flag, you can change bower package directory with .bowerrc file.
You should create .bowerrc file if not exist, and write this in file.
{
"directory" : "src/components"
}

Related

how do I test ng-add schematics

I decided to add an ng-add schematic to my library, since there are additional setup steps when installing it past running npm/yarn install. This way, users will be able to run ng add #myorg/mylib and the schematics will run
I am having difficulty test running the schematic. Angular Guide only mentions how to test generate schematics, not add ones. The problem is that the schematic is supposed to run when I install the library, however ng add command always seems to install the repository version, and not the local one even if I link my library with yarn link
Thanks for your help.
Ok, I got an answer before I submitted the question.
Do yarn link mylibrary, and then ng add mylibrary. ng add doesn't require the library not to be installed, it will try to install, but fail gracefully if the library is already installed with a warning
Skipping installation: Package already installed
Your ng-add script probably contains context.addTask(new NodePackageInstallTask());. Since link already "installed" the library in your node_modules, this will fail. The solution is to comment this line out while you're developing, and reenable it before publishing.

Curl and Macosx 10.12

I am trying to write code in C++ to get content from a url. I have found this url: https://curl.haxx.se/docs/install.html
I tried to:
export MACOSX_DEPLOYMENT_TARGET="10.6"
./configure --with-darwinssl
make
make install
But not sure what it is the new file created? What is the output of running these commands?
After unzipping the files from the zip downloaded I see a file curl.h, I guess I can use that one on my C++ program?
Any help will be appreciated.
UPDATE 1
I have found: "make install" just copies compiled files into appropriate locations.
Which are these locations?
UPDATE 2
Making all in lib
/Applications/Xcode.app/Contents/Developer/usr/bin/make
I understand now that "makefile" is the one setting where to copy files, etc.
You should use Homebrew. It is a package manager for OS X, and has tons of packages you can install from, including curl.

how to install highcharts with bower

I am starting a new Ember-CLI project. And I want to install HighCharts with bower.
How do I do this?
I have read two posts about this.
The first one tells me to:bower install highcharts.com
Unfortunately the install hangs and eventually crashes
The second post tells me to: bower install https://github.com/highslide-software/highcharts-release
But this only seems to install a bower.json and an index file... but no js files?
In this specific case, can I just manually place the highcharts.js into my own vendor folder... update brocfile and just forget bower for now? Is there any downside to this?
I have found that the unzipping of highcharts.com does take way longer than any other repo, but it should succeed eventually. There is also highcharts-release, which you mentioned. You should be able to just enter the following,
bower install highcharts-release
Once that installs you should have the files highcharts.js and highcharts.src.js at your disposal.
Try using the keyword -- highcharts-release instead of the full path.
highcharts-release contains way fewer files, which should resolve your issue.
If you use your own vendor folder, it will be harder to update to newer releases in the future, I would not recommend it unless using bower is really impossible, which is somewhat doubtful.
Another way to update the bower.json and install it via CLI from the project directory.
bower install

redhat6: how to uninstall package when it's installed from source

I installed a package from its source files by using "make install", if I want to remove the package, how should I do? I looked into Makefile, but not many options.
Thanks in advance
Yang
Usually when you use make install, there is no good way to uninstall. This is why it's often advisable to use the --prefix option to the configure script to specify a special directory for each application that's installed in this way.
Another good option is to make the extra effort to pack up an RPM, then you can use rpm to install and uninstall. But it's too late for you to do this after you've already done the install.
So, I think you will be left to try to find the files that were installed and remove them individually. Hopefully the makefile installed to /usr/local instead of /usr.
You might try searching by time range, that way you might be able to find all the files that were installed at the same time.

Building c++ project in Ubuntu Linux with Makefile.am/Makefile.in

I am new in Ubuntu/Linux and I've been working with java using the NetBeans IDE, so I don't have much experience with building c++ projects. But now I have to provide a proof of concept and I need to connect a C++ client with my ActiveMQ server. I downloaded The ActiveMQ-CPP API from this link, but I can't build/run it.
The download came with the files: Maklefile.am and Makefile.in. I searched it and I found that I need automake/autoconf to build it. I tried running ./configure but it says that it couldn't find such file or directory. I tried
sudo apt-get update
sudo apt-get install automake
sudo apt-get install autoconf
and a lot of other commands that I found on the Internet. None of then worked. I know that this question is really basic and it seems to be already answered somewhere else, but every attempt I've made failed. I think I'm missing something. I even tried the solution provided in the last message in this topic but it didn't work either.
Can anyone help me install autoconf/automake, or tell me how to use Makefile.am / Makefile.in to build the project I downloaded, or even suggest me some other way of building it?
Since you're open to other methods of building your project, I'm going to suggest CMake. It is a far better build system than autotools (at least from where I stand).
#CMakeLists.txt
project(MyProject CXX)
set_minimum_required(VERSION 2.8)
add_executable(foobar foo.cpp bar.cpp)
That example will build an executable called "foobar" by compiling and linking foo.cpp and bar.cpp. Put the above code in a file called CMakeLists.txt, then run the following commands:
cmake <path to project> #run in the folder you want to build in
make #this does the actual work
The really cool thing about CMake is that it generates a build system (Makefiles by default) but you can use it to generate project files for Eclipse, a Visual Studio solution, and a bunch of other things. If you want more information, I'd check out their documentation.
The "configure" script should be in your ActiveMQ-cpp source directory. From the Linux command line, you should be able to:
1) "cd" into your ActiveMQ* directory
2) "ls -l" to see the "configure" script
3) "./configure" to set things up for building the library\
4) "make" to actually build the library
This is mentioned in comments, but this particular point of confusion has been common for well over a decade and I think needs to be clarified as often as possible. You DO NOT need to have autoconf or automake installed to build a project that used those tools. The entire point of the autotools is to generate a build system that will build on a system using only the standard tools (make, a c compiler, sh, and few others.) Unfortunately, many developers release tarballs that do not build cleanly. If you unpack the tarball and it does not contain a configure script, or if the configure script is broken, that is a bug in the package. The solution is absolutely not to install autoconf/automake/libtool and try to produce a working configure script. The solution is to report the build error as a bug to the package maintainer.
The world would be a better place if Linux distributions stopped installing multiple versions of the autotools by default as less than .002% of the population needs those tools, and anyone who actually needs to have the tools should be capable of installing it themselves. Anyone incapable of acquiring and installing the tools has no business using them.