Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I see you can download nodejs via homepage or install via homebrew or via macports.
which is the best method?
Is there a reason for choosing one over the other?
Some things I consider:
1. Ease of upgrading to latest version
2. Ability to (fully) remove and uninstall
3. 1 and 2 should leave no trace of old version (including any temp files), or in case of uninstalling, should fully remove everything.
I prefer to use brew.
once installed its as easy as:
brew install node
Done and done.
Don't want it anymore?
brew uninstall node
Need to upgrade?
brew upgrade node
Plus, its based on git and the community is very active.
Furthermore, the packages that are installed are always in one place, then symlinked to your /usr/local/bin, so no messy sudo or multiple install locations.
Checkout the site here
Use the Mac OS X Installer as upgrading is easier in the future.
I personally like to compile from source.
https://github.com/joyent/node/wiki/Installation
You can use NVM for upgrades and downgrades and even switching between different versions at any moment!
https://github.com/creationix/nvm
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
I learned over the years that there are some packages I should not install via Homebrew or MacPorts:
For complicated reasons TeX/LaTeX should be installed directly, not through HB/MP.
Through experiments, it seems that Qt should likewise be installed directly.
For Python I'm on the fence. I prefer installing it separately. But like Qt, brew packages that depend on it will anyway install Python or Qt. Then it's a matter of making sure one's PATH is set correctly.
I still have too little experience with Node.js, npm, and webpack. Can you share your experiences? What's easier to maintain, Node.js &co installed through Homebrew or directly?
Related: 1.
If Node.js under Homebrew is giving you trouble after a macOS upgrade
~/ > node
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.67.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
Abort trap: 6
Then run
~/ > brew info icu4c
icu4c: stable 67.1 (bottled) [keg-only]
...
followed by
~/ > brew switch icu4c 67.1
Warning: Calling `brew switch` is deprecated! Use `brew link` #-versioned formulae instead.
Cleaning /usr/local/Cellar/icu4c/67.1
Opt link created for /usr/local/Cellar/icu4c/67.1
and node will run again.
~/ > node
Welcome to Node.js v15.3.0.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I'm trying to install WPS office and it depends on libpng12-0 which I can't install due to "Package 'libpng12-0' has no installation candidate
". I'm running Ubuntu 18.0.4 LTS.
... trying to install WPS office and it depends on libpng12-0
You can use the Ubuntu 16.04 package http://se.archive.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1_amd64.deb
Download, and install ...
sudo gdebi Downloads/libpng12-0_1.2.54-1ubuntu1_amd64.deb
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
i am java developer, i used fully windows for development, now i want to move to ubuntu 12 for development, i even found difficult when i tried to install new software, its not that easy to install new software in Ubuntu ?.
1) In windows we just click it for installing software, so am i need to know commands in linux ?
i am almost new to linux,
2) what are the basic thing i need to know about linux(ubuntu) or where can i get info
(FOR DEVELOPMENT).
I used
1,Eclips
2,Jdk
3,Sts (spring IDE)
4, Android SDK, etc....
now i need these development tools for ubuntu, can i get these tools in one place.
THANKS
You can install Eclipse from apt-get: sudo apt-get install eclipse.
You can install the open source variation of the Java JDK with: sudo apt-get install openjdk-7-jdk.
Never used it, but I've seen many places where it has been installed in Ubuntu.
As for Android, you can install it pretty much the same way as you would in Windows.
Download it from: Android developer site
Get a dependency for 32 bit libs (if you are running 64 bit): apt-get install ia32-libs
Extract the tar file anywhere, and use the terminal 'cd' command to go into the 'tools' directory, then Use ./android inside.
Etc. As for all around Ubuntu help I urge you to visit http://ubuntuforums.org/forumdisplay.php?f=310 for Ubuntu programming or just the forums in general for Ubuntu help. You can also get a bunch of packages by searching apt-get with apt-cache search -what you want-, which can be handy for finding packages.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Just wanted to update firefox from 11.0 to 13.0 on the latest
ubuntu so did the following:
$ sudo apt-get upgrade firefox
thinking that my firefox would be upgraded.
Instead ubuntu started to update every single package in the
whole system it seems. Now I cannot stop the process for fear
that if I do it might leave the system in an inconsistent state.
Where have I gone wrong in issuing the right command for upgrading
a single package in the command line. OK, thankfully 15 minutes
later the command returned successfully.
What is the difference between upgrade and update?
Thanks,
John Goche
Taken directly from the apt-get man page:
update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list. For example, when
using a Debian archive, this command retrieves and scans the
Packages.gz files, so that information about new and updated
packages is available. An update should always be performed before
an upgrade or dist-upgrade. Please be aware that the overall
progress meter will be incorrect as the size of the package files
cannot be known in advance.
upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new
versions available are retrieved and upgraded; under no
circumstances are currently installed packages removed, or packages
not already installed retrieved and installed. New versions of
currently installed packages that cannot be upgraded without
changing the install status of another package will be left at
their current version. An update must be performed first so that
apt-get knows that new versions of packages are available.
Update is used to update the apt-get package list, upgrade is used to install updates for all packages. To update just one package, use install.
sudo apt-get install firefox
Try this:
apt-get update
apt-get install firefox
You must use install command to install and to update package also.
From man apt-get:
upgrade
upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated
in
/etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded
(...)
install
install is followed by one or more packages desired for installation or upgrading.
(...)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
It seems like they gave me 1.4.4 Which is not the latest.
Is this normal? I want 1.6. But I'm afraid that if I do apt-get uninstall, bad things will happen.
I'd recommend using the official Ubuntu and Debian packages ...
http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
That'll make sure you'll always get the latest stable version. If you use this on Ubuntu (for example) MongoDB will install to /var/lib/mongodb/ (instead of /data/db/)
So, if your data is already in /var/lib/mongodb/ you should be fine doing an uninstall and reinstall from the offical packages ... it shouldn't remove that dir unless it was a horible port in the first place!
Simply making a backup copy of that dir should do the trick if you are worried, good practice anyhow.
You can also always move your DB files into that dir after the install and MongoDB will pick them up (normally.)
Before you do anything however, just make sure you do a clean shutdown first! That way you won't end up with a mongod.lock file which won't let you do a restart w/o a repair.
$ ./mongo
> use admin
> db.shutdownServer()
I'd recommend not to touch your distribution and operating system version, and go for the simple solution of installing a downloaded package: www.mongodb.org/downloads.
Especially if you are using Debian, since Mongo 1.1.6 is supported only on unstable - packages.debian.org/search?keywords=mongodb
Tip: If you are on Debian or Ubuntu, check this page: http://www.mongodb.org/display/DOCS/Ubuntu+and+Debian+packages
Installing anything via apt-get installs whichever version is the default from all known repositories. By default that only includes your distributions repository (Debian, Ubuntu, ...).
Those repositories contain well-defined, well-tested versions of the software. They don't always get updated to the latest version (or may be somewhat slow).
If you require a specific version (or the latest one), then you need to find a repository that provides that version (possibly provided by the developers of the software) or install it via other means.
Frankly, this is a question about Debian packaging system. Anyway here it is my suggestion.
Make sure you have listed "unstable" in apt-get sources:
# cat /etc/apt/sources.list.d/unstable.list
deb ftp://<your closest debian mirror>/debian/ unstable main contrib non-free
deb-src ftp://<your closest debian mirror>/debian/ unstable main
Find your mirror in the list of mirrors
Then do
apt-get update
apt-get install mongodb-server /unstable
apt-get install mongodb-clients /unstable
(be careful if it's your production -- MongoDB will be restarted)
And by the way, the latest version of MongoDB in Debian "unstable" is 1.6.5: MongoDB in "sid"