Mondo db - fatal: libstdc++.so.6: open failed: No such file or directory

14
May
0

During installation of MondoDB on Centos5.11, I encountered this error when attempting to run mongo shell.

ld.so.1: mongo: fatal: libstdc++.so.6: open failed: No such file or directory

To fix this issue make sure you download the extra libraries so you don’t get any dependency issues.
Assuming I have installed mongodb in /home/bach/mongo

$ cd /home/bach/mongo/
$ curl -O http://downloads.mongodb.org.s3.amazonaws.com/sunos5/mongo-extra-64.tgz
$ tar -xvzf mongo-extra-64.tgz
$ rm mongo-extra-64.tgz

Then export the path to the library before launching the shell:

$ export LD_LIBRARY_PATH=/home/bach/mongo/mongo-extra-64

Then you will be able to launch the shell without issues:

$ bin/mongo
> db.foo.save( { a : 1 } )
> db.foo.find()
Filed under: Linux, MongoDB

How to use a gradient for the text of a UILabel?

29
Dec
0

The simplest solution:

UIImage *myGradient = [UIImage imageNamed:@"textGradient.png"];
myLabel.textColor   = [UIColor colorWithPatternImage:myGradient];
Filed under: iOS

How to setup Apache Tomcat Connector on Linux Centos 5.x

7
Sep
1

The Problem

On myserver, I have a Java app myapp running off Tomcat that I can access on port 8080
http://myserver.com:8080/myapp/

I wanted to serve that app through Apache so I can access it at
http://myapp.myserver.com/


The Solution

So I needed to setup the Apache Tomcat Connector for myserver
a Linux box running CentOS release 5.3

Filed under: Apache, Linux, Tomcat

Setting up PostgreSQL 8.x with Ruby 1.8.6 on Rails 2.3.4

12
Nov
0

PostgreSQL is a:

Sophisticated open-source Object-Relational DBMS supporting almost all SQL constructs, including subselects, transactions, and user-defined types etc…

The Problem

You have just installed PostgrelSQL but getting this error when you try to run the server:

The ordinal 284 could not be located in the dynamic link library SSLEAY32.dll

Installing mysql gem on MAC OS + XAMPP + Rails 2.3

8
Nov
4

If you are on a MAC, using the easygoing XAMPP and need that rails app to get up and running using MySQL, then read on.

CakePHP - Export data to Excel - The easy way!

26
Oct
48

I am posting this method here just so we never ever ever ever…
forget what Albert Einstein once said

Everything should be made as simple as possible, but not simpler.

Filed under: CakePHP

File browser for Ruby on Rails

4
Jun
31

I have spent all day yesterday looking for a good(any) Ruby on Rails file explorer or browser for a web application but did not find anything. Few people mentioned Boxroom which looks great except …

Filed under: Ruby on Rails