Install on Ubuntu 10.10

Get help using the SciDB system, discuss existing features, report bugs and problems.

Install on Ubuntu 10.10

Postby scott » Thu Nov 04, 2010 11:55 am

I had an easy time installing SciDB on a fresh Ubuntu (10.10) download The one bit in the recipe from http://trac.scidb.org/wiki/PrivateArea/Ubuntu10 that could be updated is that libprotobuf is now up to libprotobuf6 (with the default apt-get config).
scott
 
Posts: 2
Joined: Thu Nov 04, 2010 11:17 am

Re: Install on Ubuntu 10.10

Postby becla » Fri Nov 05, 2010 12:13 am

Thank you, we updated the instructions. Glad to you hear you installed it easily!
becla
Site Admin
 
Posts: 5
Joined: Mon Sep 27, 2010 4:04 pm

Re: Install on Ubuntu 10.10

Postby akhil760 » Thu Feb 10, 2011 3:13 pm

I have followed the following steps for installation on Ubuntu 10.10:-

tar xvfz scidb-0.7.5.1557.tgz
cd scidb-0.7.5.1557
sudo apt-get update
sudo apt-get install -y build-essential cmake libboost1.40-all-dev \
postgresql-8.4 libpqxx-3.0 libpqxx3-dev libprotobuf6 libprotobuf-dev \
protobuf-compiler doxygen flex bison libxerces-c-dev libxerces-c3.1 \
liblog4cxx10 liblog4cxx10-dev libcppunit-1.12-1 libcppunit-dev \
libbz2-dev postgresql-contrib libconfig++8 libconfig++8-dev \
libconfig8-dev subversion
cmake .
make
sudo make install

After that I edited the /opt/scidb-0.7.5/etc/config.ini file and postgres was running too.
After that when I gave "scidb-0.7.5 init test1" script on the terminal it returned "scidb-0.7.5: command not found"
akhil760
 
Posts: 2
Joined: Thu Feb 10, 2011 2:45 pm

Re: Install on Ubuntu 10.10

Postby sraman » Thu Feb 10, 2011 10:33 pm

scidb-0.7.5 is a wrapper script that launches scidb. You may have to add this to your path:

export PATH=/opt/scidb-0.7.5/bin:/opt/scidb-0.7.5/share/scidb:$PATH
export LD_LIBRARY_PATH=/opt/scidb-0.7.5/lib:$LD_LIBRARY_PATH

Suchi
sraman
 
Posts: 18
Joined: Mon Sep 27, 2010 5:16 pm

Re: Install on Ubuntu 10.10

Postby akhil760 » Fri Feb 11, 2011 10:32 am

Thanks! But still I am getting an error:- IOError: [Errno 19] No such device

root@ubuntu:~# scidb-0.7.5 init test1
/opt/scidb-0.7.5/etc/config.ini test1 init
Parsing test1 section.
{'install_root': '/opt/scidb-0.7.5', 'db_name': 'test1', 'pluginsdir': '/opt/scidb-0.7.5/lib/scidb/plugins', 'master_ip': '10.1.3.1', 'db_passwd': 'scidb_passwd1', 'db_user': 'scidb_user1', 'master_data_dir': '/mnt/master', 'master_port': '1239', 'interface': 'eth1', 'logconf': '/opt/scidb-0.7.5/share/scidb/log4cxx.properties', 'metadata': '/opt/scidb-0.7.5/share/scidb/meta.sql'}
Cleaning up old logs and storage files.
Reinitializing and registering local scidb instance/storage.

sudo privileges are required to configure the postgres database.

host=10.1.3.1 port=5432 dbname=test1 user=scidb_user1 password=scidb_passwd1
Traceback (most recent call last):
File "/opt/scidb-0.7.5/bin/scidb.py", line 205, in <module>
init()
File "/opt/scidb-0.7.5/bin/scidb.py", line 118, in init
p = subprocess.Popen([binpath + "/scidb", "-p", d.get('master_port'), "-r", "-i", get_ip_address(d.get('interface')),
File "/opt/scidb-0.7.5/bin/scidb.py", line 86, in get_ip_address
return socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0x8915, struct.pack('256s', ifname[:15]))[20:24])
IOError: [Errno 19] No such device

-Akhil
akhil760
 
Posts: 2
Joined: Thu Feb 10, 2011 2:45 pm

Re: Install on Ubuntu 10.10

Postby apoliakov » Sun Feb 13, 2011 5:07 pm

Hello, Akhil
From the error message, it looks like your opt/scidb-0.7.5/etc/config.ini file refers to a network interface that does not exist. Is that possible? I would start with that file...

I've recently gone through the exercise of setting up scidb for a single node and here are the steps I followed. Maybe these will help you?
Code: Select all
I am running Ubuntu 10.10 and a single-node configuration.

First setup postgres:
postgres@scalpel:/home/apoliakov/workspace/scidb_075$ /opt/scidb-0.7.5/bin/scidb-prepare-db.sh
Enter catalog owner name: scidb_user1
Create user scidb_user1? (y/n): y
Enter password for new role: password
Enter it again: password
Catalog database name: test1
UPDATE 1
GRANT
Do you want create catalog structure now? (y/n): y
...

Then create a config.ini file. This is mine. It's for one node:
apoliakov@scalpel:/opt/scidb-0.7.5/etc$ cat config.ini
[test1]
master_ip=127.0.0.1
db_user=scidb_user1
db_passwd=password
install_root=/opt/scidb-0.7.5
metadata=/opt/scidb-0.7.5/share/scidb/meta.sql
pluginsdir=/opt/scidb-0.7.5/lib/scidb/plugins
logconf=/opt/scidb-0.7.5/share/scidb/log4cxx.properties
master_data_dir=/home/apoliakov/test_data
master_port=1239
interface=eth0

You can then init the system like so:
apoliakov@scalpel:/opt/scidb-0.7.5/share/scidb$ ./scidb-0.7.5 init test1

And start it like so:
apoliakov@scalpel:/opt/scidb-0.7.5/share/scidb$ ./scidb-0.7.5 start test1

After I performed these steps, I could use "iquery" to run queries on the system.


Maybe these steps can help? Please keep us informed of your progress.
apoliakov
Site Admin
 
Posts: 243
Joined: Wed Nov 03, 2010 2:46 pm

Re: Install on Ubuntu 10.10

Postby dhruv » Tue Feb 15, 2011 7:23 am

the problem was with config.ini file..its working fine now! thanks!
dhruv
 
Posts: 1
Joined: Fri Feb 04, 2011 11:38 pm

Re: Install on Ubuntu 10.10

Postby pingorya » Mon Mar 14, 2011 4:48 am

akhil760 wrote:Thanks! But still I am getting an error:- IOError: [Errno 19] No such device

root@ubuntu:~# scidb-0.7.5 init test1
/opt/scidb-0.7.5/etc/config.ini test1 init
Parsing test1 section.
{'install_root': '/opt/scidb-0.7.5', 'db_name': 'test1', 'pluginsdir': '/opt/scidb-0.7.5/lib/scidb/plugins', 'master_ip': '10.1.3.1', 'db_passwd': 'scidb_passwd1', 'db_user': 'scidb_user1', 'master_data_dir': '/mnt/master', 'master_port': '1239', 'interface': 'eth1', 'logconf': '/opt/scidb-0.7.5/share/scidb/log4cxx.properties', 'metadata': '/opt/scidb-0.7.5/share/scidb/meta.sql'}
Cleaning up old logs and storage files.
Reinitializing and registering local scidb instance/storage.

sudo privileges are required to configure the postgres database.

host=10.1.3.1 port=5432 dbname=test1 user=scidb_user1 password=scidb_passwd1
Traceback (most recent call last):
File "/opt/scidb-0.7.5/bin/scidb.py", line 205, in <module>
init()
File "/opt/scidb-0.7.5/bin/scidb.py", line 118, in init
p = subprocess.Popen([binpath + "/scidb", "-p", d.get('master_port'), "-r", "-i", get_ip_address(d.get('interface')),
File "/opt/scidb-0.7.5/bin/scidb.py", line 86, in get_ip_address
return socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0x8915, struct.pack('256s', ifname[:15]))[20:24])
IOError: [Errno 19] No such device

-Akhil

hi,
I met some problems the same with you ,as follow:
Code: Select all
 scidb-0.7.5 init test1
/opt/scidb-0.7.5/etc/config.ini test1 init
Parsing test1 section.
{'install_root': '/opt/scidb-0.7.5', 'db_name': 'test1', 'pluginsdir': '/opt/scidb-0.7.5/lib/scidb/plugins', 'master_ip': '10.248.211.239', 'db_passwd': 'scidb_passwd1', 'db_user': 'scidb_user1', 'master_data_dir': '/mnt/master', 'master_port': '1239', 'interface': 'eth1', 'logconf': '/opt/scidb-0.7.5/share/scidb/log4cxx.properties', 'metadata': '/opt/scidb-0.7.5/share/scidb/meta.sql'}
Traceback (most recent call last):
  File "/opt/scidb-0.7.5/bin/scidb.py", line 196, in <module>
    os.chdir(spath)
OSError: [Errno 2] No such file or directory: '/mnt/master'

can anybody help me?

Sara
pingorya
 
Posts: 4
Joined: Wed Feb 23, 2011 4:11 am

Re: Install on Ubuntu 10.10

Postby apoliakov » Mon Mar 14, 2011 11:41 am

Hello,
The error message means that scidb is looking for the directory '/mnt/master' and it does not exist on your system.
It looks like you need to edit your config.ini file to make sure all the paths are right.
The /mnt/master entry probably comes from this line that's in our instructions.
Code: Select all
master_data_dir=/mnt/master

I recommend creating a directory for scidb data (some path that works for you) and changing this field to point to that directory.
For reference, there's one config.ini file example upstream in this thread.

Let me know if you have more problems...
apoliakov
Site Admin
 
Posts: 243
Joined: Wed Nov 03, 2010 2:46 pm

Re: Install on Ubuntu 10.10

Postby pingorya » Mon Mar 21, 2011 12:31 am

apoliakov wrote:Hello,
The error message means that scidb is looking for the directory '/mnt/master' and it does not exist on your system.
It looks like you need to edit your config.ini file to make sure all the paths are right.
The /mnt/master entry probably comes from this line that's in our instructions.
Code: Select all
master_data_dir=/mnt/master

I recommend creating a directory for scidb data (some path that works for you) and changing this field to point to that directory.
For reference, there's one config.ini file example upstream in this thread.

Let me know if you have more problems...

hi,
I finally successfully installed the scidb and can use the iquery command. The solution were that I created a new directory , modified the master_ip and interface.....
Thank you and Akhil ~~~

-Sara
pingorya
 
Posts: 4
Joined: Wed Feb 23, 2011 4:11 am

Next

Return to SciDB Support and Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron