CouchDB Failing on OS X - couchdb

I recently installed CouchDB using Homebrew and am running into the following error when I run the "couchdb" command. I'm on OS X 10.7.5:
Apache CouchDB 1.2.1 (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,274}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
I'd previously had couchdb running just fine, but reinstalled recently to try and upgrade. I'm not sure at all how to diagnose this problem.
I've tried setting my file permissions, but they seem to be fine and don't have any effect on this problem.
I've also tried uninstalling from homebrew and reinstalling with sudo port install couchdb. Nothing seems to work.
I'm running into this problem on a Macbook Pro and an iMac. Same error, same installation method.
Thanks, All!

This link has everything you need.
http://wiki.apache.org/couchdb/Installing_on_OSX
This line seems of particular interest for you:
brew remove --force openssl erlang couchdb icu4c spidermonkey nspr
then
brew update
brew outdated
brew install erlang
brew install couchdb
If all else fails scroll down to install from source.

Sorry, I couldn't say anything about Homebrew problem, but you may try binary package made by Jan Lehnardt. Currently, it should successfully handle updates from 1.2.0 - follow the mailing list discussion for more info.
Note, that this package is a little experimental now, but any feedback are welcomed!

Related

Linux AWS still looking for uninstalled version of Node and of NPM

I'm fairly new to Linux systems, so sorry if the question is too basic. I am using Amazon Linux 2 AMI.
I had installed version 16.4.2 of NodeJS at the beginning and was giving me compatibilities issues. Hence I tried to uninstall it and then install version 14.15.5 (which was stable on my local dev).
To uninstall the new version, I ran the command sudo yum remove nodejs and it apparently uninstalled NodeJS. Then I installed the old version via first curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash - and then sudo yum install -y nodejs (it said it was successful). But finally I ran the command node -v to only get:
-bash: /home/ec2-user/.nvm/versions/node/v16.4.2/bin/node: No such file or directory
So he's still looking for the version I uninstalled. How can I completely remove the new version and finally get the new version installed, please?
Thanks in advance!
For anybody arriving at this post: after uninstallation, everything I had to do was stopping and rebooting the instance. Then the old version was recognized.
Try exiting and reconnecting to the EC2 instance, it helps everytime. Also, if you haven't already upgraded the nodejs version you can upgrade using this link once done, exit the instance and reconnect, works everytime.

I just installed Nodejs 14.4 from the site, but when I check the version in Command Prompt it shows version 8.10

title says it all. I have been using nodejs with npm for while now and it has been working fine, but I went to check the version and noticed it was an older one. Nodejs - version 8.10.0 and npm - version 3.5.2. I know there are more recent versions of each and like I said I went to download the new version of Nodejs and I got it. I have the path set up to its location in my Environment Variable. I'm not sure what I'm missing. Would love any help.
Edit: Forgot to mention on my original post that I am on Windows.
Edit2: So I was looking at it more and I am using the Ubuntu Bash Shell on muy windows computer. Whenever I check the version in the normal Windows Command Prompt it displays the right version, but when I check it in the Bash shell it is wrong. Any ideas why this happens?
The Node Version Manager. You can find it at https://github.com/coreybutler/nvm-windows
It allows you to easily install and manage multiple versions of node. Here's a snippet from the help:
Usage:
nvm install <version> Download and install a <version>
nvm use <version> Modify PATH to use <version>
nvm ls List versions (installed versions)
install and Usage:
nvm install 6.14.4 # or 10.10.0, 8.9.1, etc
and then
nvm use 6.14.4
So, I was able to solve my own issue
These two links were very important for solving my issue:
E: Unable to locate package npm
https://learn.microsoft.com/en-us/windows/wsl/install-win10#update-to-wsl-2
So basically after uninstalling nodejs I went and tried uninstalling and reinstalling my Ubuntu Bash shell. Once I had the Bash shell set up again I tried running the commands listed in the stackoverflow post I have listed above. (note: When you run the curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - line you need to adjust the "setup" version to 14.x) When I ran all the commands I was able to get my npm version up-to-date, but my nodejs was still being stuck at version 10.x. I tried running the install again on nodejs and thats when I noticed an error reading gpg: can't connect to the agent: IPC connect call failed I did some research on this error and foudn out my WSL1 would not allow it to update to the most recent version. Thats how I found my way to the Microsoft page that led to me needing to update my version of Windows to 1909 and then installing WSL2 through Power Shell. Everything is now up-to-date and working!
You could Uninstall both versions and reinstall the newer version. That should do it
Or better still download the NVM and follow the instructions from here
https://blog.logrocket.com/switching-between-node-versions-during-development/

No dashboard/terminal/sidebar displayed in ubuntu 14.04 after removing python3.4

Problem summary: No dashboard/terminal/sidebar displayed in Ubuntu 14.04 after uninstalling Python3.4
How it happened: I was working on a project which requires Python3.5 . My Ubuntu 14.04.5 had already Python3.4 installed in it. After installing Python3.5, I removed Python3.4 as I was facing some problem.
While uninstalling Python3.4(using 'sudo apt-get remove python3.4'), I realized that I have made a mistake by uninstalling it, as it caused to remove many other packages related to display/software updates/other display related packages.
I reinstalled the Python3.4 package and rebooted the system. But then I found that the desktop of my system is not coming properly. There is no dashboard/sidebar/terminal/settings option visible. Even ctr+alt+T not working.
Tried Solution: I installed python3.4/ubuntu-desktop/software-center packages there(using ctr+alt+F1) but they did not improve the situation. I still don't understand which packages I need to install in order to fix this. I appreciate any help for it.
I landed up in the same situation, doing the same thing as you. To make matters worse (may be) I even tried to uninstall Python2. My thinking was, if I have Python3, why do I need 2?
Anyway, I was scrambling to find a fix, when I came across your query, which gave me an idea. I hit Ctrl+Alt+F1, and at the command prompt issued this command:
sudo apt-get install unity
That fixed the issue.
I realize you may have already resolved the issue, but I figured this might help others.

Path to Node.js Installation in Ubuntu

I am new to Ubuntu (linux).
I installed node.js for a project.
Recently I am getting this error on npm install.
Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
I found a stack link below as
Node pre error
Under the solution it asks for the directory where node.js is installed and currently i am clueless where the nodejs is installed.
Please help me on how can I locate the directory where node.js is installed.
Quick explanation
You have a version with -pre. Get rid of it and put the latest stable version from nodejs.org.
You can use which to locate a command. For your case, type which nodejs.
EDIT: The answer from your link is referring to the path of node source code, not the nodejs binary.
On Ubuntu, most software can be installed from the built-in repositories. This updates it for you (even if it's sometimes a bit outdated).
To install the stable version the Ubuntu way, install the nodejs-legacy package (after uninstalling your version):
sudo apt install nodejs-legacy
To use the latest, refer to https://askubuntu.com/a/663052/438156 (my answer), or https://askubuntu.com/a/711976/438156 (bit more involved, more the Ubuntu way).

error when trying to install libtmcg "configure: error: libgmp >= 4.1 is needed"

I've tried installing different libgmp's from ubuntu app center and I tried installing it manually from http://gmplib.org/#DOWNLOAD but I can't get this to configure it's an old library and I'm trying to run it on the latest version of ubuntu but I didn't think I'd have problems but I'm new to trying to use libraries like this any help would be greatly appreciated.
I've had these kind of errors installing dependencies before, and I realized that you must to force the installation of such pack having it... you didn't mention the version of your Ubuntu, so I'm assuming you're working with 12.10. But if not you always can look up for the version you are running on.
Just download the pack from here, of course, depending on your architecture, and after that run sudo apt-get -f install in order to force the installation of broken packs.

Resources