Hello,
I have the Basex installed on the Ubunto Server and by the command apt-get install basex I can not update it because it is past of date, then I downloaded the basex_7.7.2-1.debian.tar.gz but I don't know how to execute the installation.
Could you give me a tutorial to do the installation for updating of the basex?
Regards,
Daiane
Hi Daiane,
I don't work with the BaseX debian distribution by myself, but I guess you can simply unzip all files as root user. Have you tried this already?
Alternatively, simply try with the ZIP version of BaseX [1,2] and check out our Wiki on how to get started [3]. I have slightly edited the start page. Just tell us if you miss some specific information.
Christian
[1] http://files.basex.org/releases/latest/ [2] basex.org/download [3] http://docs.basex.org/wiki/Startup
On Wed, Jan 29, 2014 at 11:58 AM, DAIANE ROBERTA CANDIDA dairc_8@hotmail.com wrote:
Hello,
I have the Basex installed on the Ubunto Server and by the command apt-get install basex I can not update it because it is past of date, then I downloaded the basex_7.7.2-1.debian.tar.gz but I don't know how to execute the installation.
Could you give me a tutorial to do the installation for updating of the basex?
Regards,
Daiane
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Daiane,
you can download the 7.7.2 .deb file from [1].
As root:
# dpkg -i ...
should work?
Cheers, Alex
[1] http://packages.debian.org/de/sid/all/basex/download
On 29.01.2014, at 12:47, Christian Grün christian.gruen@gmail.com wrote:
Hi Daiane,
I don't work with the BaseX debian distribution by myself, but I guess you can simply unzip all files as root user. Have you tried this already?
Alternatively, simply try with the ZIP version of BaseX [1,2] and check out our Wiki on how to get started [3]. I have slightly edited the start page. Just tell us if you miss some specific information.
Christian
[1] http://files.basex.org/releases/latest/ [2] basex.org/download [3] http://docs.basex.org/wiki/Startup
On Wed, Jan 29, 2014 at 11:58 AM, DAIANE ROBERTA CANDIDA dairc_8@hotmail.com wrote:
Hello,
I have the Basex installed on the Ubunto Server and by the command apt-get install basex I can not update it because it is past of date, then I downloaded the basex_7.7.2-1.debian.tar.gz but I don't know how to execute the installation.
Could you give me a tutorial to do the installation for updating of the basex?
Regards,
Daiane
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Dr. Alexander Holupirek |-- Room E 221, 0049 7531 88 2188 (phone) 3577 (fax) |-- Database & Information Systems Group, U Konstanz `-- https://scikon.uni-konstanz.de/personen/alexander.holupirek/
Daiane,
Christian has explained this nicely here and on the wiki, but let me add some more detail.
As a Debian (Mint) user myself, I strongly favor BaseX from the ZIP archive. Get the zip from the Downloads page (http://basex.org/products/download/all-downloads/), unzip it anywhere you like, go to the unzipped directory. There you start the BaseX GUI, e. g. from the terminal / command line (even simpler than what was recommended by Christian: java -jar BaseX.jar also works).
Should you need the web server, start the basexhttp script -- again from the unzipped directory (in the terminal: bin/./basexhttpstart -- by the way, bin/./basexhttpstart -S seems to send the process to the background, so you can use the command line afterwards). After you get the message that the server has started, in your browser you can go to http://localhost:8984, or http://localhost:8984/rest, etc.
Best, Neven
Neven Jovanovic, Zagreb Hrvatska / Croatia
On 29 January 2014 12:50, Alexander Holupirek alexander.holupirek@uni-konstanz.de wrote:
Hi Daiane,
you can download the 7.7.2 .deb file from [1].
As root:
# dpkg -i ...
should work?
Cheers, Alex
[1] http://packages.debian.org/de/sid/all/basex/download
On 29.01.2014, at 12:47, Christian Grün christian.gruen@gmail.com wrote:
Hi Daiane,
I don't work with the BaseX debian distribution by myself, but I guess you can simply unzip all files as root user. Have you tried this already?
Alternatively, simply try with the ZIP version of BaseX [1,2] and check out our Wiki on how to get started [3]. I have slightly edited the start page. Just tell us if you miss some specific information.
Christian
[1] http://files.basex.org/releases/latest/ [2] basex.org/download [3] http://docs.basex.org/wiki/Startup
On Wed, Jan 29, 2014 at 11:58 AM, DAIANE ROBERTA CANDIDA dairc_8@hotmail.com wrote:
Hello,
I have the Basex installed on the Ubunto Server and by the command apt-get install basex I can not update it because it is past of date, then I downloaded the basex_7.7.2-1.debian.tar.gz but I don't know how to execute the installation.
Could you give me a tutorial to do the installation for updating of the basex?
Regards,
Daiane
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Dr. Alexander Holupirek |-- Room E 221, 0049 7531 88 2188 (phone) 3577 (fax) |-- Database & Information Systems Group, U Konstanz `-- https://scikon.uni-konstanz.de/personen/alexander.holupirek/
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
That problem is solved. Thanks.
Date: Wed, 29 Jan 2014 15:57:55 +0100 From: filologanoga@gmail.com To: basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] How do you update Basex to 7.7.2 version?
Daiane,
Christian has explained this nicely here and on the wiki, but let me add some more detail.
As a Debian (Mint) user myself, I strongly favor BaseX from the ZIP archive. Get the zip from the Downloads page (http://basex.org/products/download/all-downloads/), unzip it anywhere you like, go to the unzipped directory. There you start the BaseX GUI, e. g. from the terminal / command line (even simpler than what was recommended by Christian: java -jar BaseX.jar also works).
Should you need the web server, start the basexhttp script -- again from the unzipped directory (in the terminal: bin/./basexhttpstart -- by the way, bin/./basexhttpstart -S seems to send the process to the background, so you can use the command line afterwards). After you get the message that the server has started, in your browser you can go to http://localhost:8984, or http://localhost:8984/rest, etc.
Best, Neven
Neven Jovanovic, Zagreb Hrvatska / Croatia
On 29 January 2014 12:50, Alexander Holupirek alexander.holupirek@uni-konstanz.de wrote:
Hi Daiane,
you can download the 7.7.2 .deb file from [1].
As root:
# dpkg -i ...
should work?
Cheers, Alex
[1] http://packages.debian.org/de/sid/all/basex/download
On 29.01.2014, at 12:47, Christian Grün christian.gruen@gmail.com wrote:
Hi Daiane,
I don't work with the BaseX debian distribution by myself, but I guess you can simply unzip all files as root user. Have you tried this already?
Alternatively, simply try with the ZIP version of BaseX [1,2] and check out our Wiki on how to get started [3]. I have slightly edited the start page. Just tell us if you miss some specific information.
Christian
[1] http://files.basex.org/releases/latest/ [2] basex.org/download [3] http://docs.basex.org/wiki/Startup
On Wed, Jan 29, 2014 at 11:58 AM, DAIANE ROBERTA CANDIDA dairc_8@hotmail.com wrote:
Hello,
I have the Basex installed on the Ubunto Server and by the command apt-get install basex I can not update it because it is past of date, then I downloaded the basex_7.7.2-1.debian.tar.gz but I don't know how to execute the installation.
Could you give me a tutorial to do the installation for updating of the basex?
Regards,
Daiane
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Dr. Alexander Holupirek |-- Room E 221, 0049 7531 88 2188 (phone) 3577 (fax) |-- Database & Information Systems Group, U Konstanz `-- https://scikon.uni-konstanz.de/personen/alexander.holupirek/
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hello,
I have been trouble with loading lots of xml files into the basex. I using Ubunto OS.
The commands below I used to perform the loading files:
CREATE DB bd_inex2009;SET TEXTINDEX false;SET ATTRINDEX false;SET AUTOFLUSH false;SET ADDCACHE true;SET INTPARSE true;SET DTD false;ADD /home/arwen/daiane_oracle/loading_inex2009/new_page_xml
Those commands result the message error below:
Out of Main Memory. The following hints might help you: - increase Java's heap size with the flag -Xmx<size> - choose the internal XML parser in the GUI or via 'set intparse on' - deactivate the text and attribute indexes
Then to increase Java's heap size with the flag -Xmx<size> I followed the statements on the documentation in http://docs.basex.org/wiki/Start_Scripts.
I replaced the code from /usr/bin named basex, basexclient, basexserver and basesgui but org.basex.BaseX is missing. -------------------------------------------- Linux/Mac: basex -------------------------------------------- #!/bin/bash
# Path to this script FILE="${BASH_SOURCE[0]}" while [ -h "$FILE" ] ; do SRC="$(readlink "$FILE")" FILE="$( cd -P "$(dirname "$FILE")" && \ cd -P "$(dirname "$SRC")" && pwd )/$(basename "$SRC")" done BX="$( cd -P "$(dirname "$FILE")/.." && pwd )"
# Core and library classes CP="$BX/BaseX.jar" CP="$CP$(for JAR in "$BX"/lib/*.jar; do echo -n ":$JAR"; done)"
# Options for virtual machine VM=-Xmx512m
# Run code java -cp "$CP" $VM org.basex.BaseX "$@" -----------------------------------------------------------------------
I don't know where the org.basex.BaseX file is placed, because of this I didn't find it to replace it like the others files.
When I use the command below:
arwen@arwen:/usr/bin$ basexserver Error: Could not find or load main class org.basex.BaseX
My intention is just increasing Java heap size with the flag -Xmx<size> How can I do this step by step?
Regards,
Daiane
Hello Daiane,
it is unclear to me what you are actually doing. Has there already been a basex file within /usr/bin or did you create it yourself? Based on your previous question and the provided answer by Neven Jovanovic the zip archive would not automatically unpack to /usr/bin.
Let's analyze this step by step:
- "org.basex.BaseX" is not a file, but a java class. The command "java org.basex.BaseX" thus simply tells the java JVM to execute the BaseX class. There is no file you want to search for or where you want to replace anything (because it will already be compiled to Java bytecode. Of course there is a source code, but this is not relevant to you). - The error message "Could not find or load main class org.basex.BaseX" now tells you that the JVM could not find the class BaseX. This means the BaseX.jar (where org.basex.BaseX is contained in) is not in your classpath.
I do not know how you did setup / install BaseX on your machine. If you use the zip distribution as Neven suggested (btw I second that, I think it is the easiest way to use a current release on unix) the BaseX.jar is automatically included when using the startup scripts. So to increase your heap size you simply have to replace the line "VM=-Xmx512m" within the bin/basex (or bin/basexgui or bin/basexserver, ...) script. Of course you could also correctly include the BaseX.jar in your current setup.
Cheers, Dirk
On 30/01/14 15:47, DAIANE ROBERTA CANDIDA wrote:
Hello,
I have been trouble with loading lots of xml files into the basex. I using Ubunto OS.
The commands below I used to perform the loading files:
CREATE DB bd_inex2009;SET TEXTINDEX false;SET ATTRINDEX false;SET AUTOFLUSH false;SET ADDCACHE true;SET INTPARSE true;SET DTD false;ADD /home/arwen/daiane_oracle/loading_inex2009/new_page_xml
Those commands result the message error below:
Out of Main Memory. The following hints might help you:
- increase Java's heap size with the flag -Xmx<size>
- choose the internal XML parser in the GUI or via 'set intparse on'
- deactivate the text and attribute indexes
Then to increase Java's heap size with the flag -Xmx<size> I followed the statements on the documentation in http://docs.basex.org/wiki/Start_Scripts.
I replaced the code from /usr/bin named basex, basexclient, basexserver and basesgui but org.basex.BaseX is missing.
Linux/Mac: basex
#!/bin/bash
# Path to this script FILE="${BASH_SOURCE[0]}" while [ -h "$FILE" ] ; do SRC="$(readlink "$FILE")" FILE="$( cd -P "$(dirname "$FILE")" && \ cd -P "$(dirname "$SRC")" && pwd )/$(basename "$SRC")" done BX="$( cd -P "$(dirname "$FILE")/.." && pwd )"
# Core and library classes CP="$BX/BaseX.jar" CP="$CP$(for JAR in "$BX"/lib/*.jar; do echo -n ":$JAR"; done)"
# Options for virtual machine VM=-Xmx512m
# Run code java -cp "$CP" $VM org.basex.BaseX "$@"
I don't know where the org.basex.BaseX file is placed, because of this I didn't find it to replace it like the others files.
When I use the command below:
arwen@arwen:/usr/bin$ basexserver Error: Could not find or load main class org.basex.BaseX
My intention is just increasing Java heap size with the flag -Xmx<size> How can I do this step by step?
Regards,
Daiane
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de