Did you know ... Search Documentation:
Pack logicmoo_workspace -- INSTALL.md

#!/bin/bash

( # apt-get -y install python-software-properties # apt-get -y install software-properties-common # apt-get build-dep swi-prolog # libcurl4-gnutls-dev # libcurl4-openssl-dev

# apt-get update # second line is BiocManager requirements apt-get install build-essential cmake ninja-build pkg-config \ libxml2-dev libudunits2-dev libgeos++-dev libtiff-dev libopenmpi-dev \ git curl wget \ r-base r-base-dev r-cran-rserve r-cran-devtools libffi-dev gdebi-core r-cran-bit64 \ libssl-dev libcairo-dev \ ncurses-dev libreadline-dev libedit-dev \ libgoogle-perftools-dev libunwind-dev libgmp-dev libssl-dev \ unixodbc-dev zlib1g-dev libarchive-dev libossp-uuid-dev \ libxext-dev libice-dev libjpeg-dev libxinerama-dev libxft-dev \ libxpm-dev libxt-dev libdb-dev libpcre3-dev libyaml-dev \ default-jdk junit4 libssh-dev \ qt5-default \ libraptor2-dev \ autoconf automake autopoint autotools-dev binutils binutils-common binutils-x86-64-linux-gnu build-essential cmake cmake-data dctrl-tools debhelper default-jdk \ default-jdk-headless dh-autoreconf dh-strip-nondeterminism dpkg-dev dwz g++ g++-8 gcc gcc-8 gettext intltool-debian junit libarchive-dev libarchive-zip-perl libasan5 \ libbinutils libbsd-dev libc-dev-bin libc6-dev libcc1-0 libdb-dev libdb5.3-dev libdpkg-perl libedit-dev libexpat1-dev libfile-stripnondeterminism-perl libfontconfig1-dev \ libfreetype6-dev libgcc-8-dev libgmp-dev libgmpxx4ldbl libice-dev libitm1 libjpeg-dev libjpeg62-turbo-dev libjsoncpp1 liblsan0 libltdl-dev liblzma-dev libmpx2 \ libncurses-dev libodbc1 libossp-uuid-dev libossp-uuid16 libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpng-dev libpthread-stubs0-dev libreadline-dev librhash0 \ libsigsegv2 libsm-dev libssl-dev libstdc++-8-dev libtool libtsan0 libubsan1 libunwind-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxext-dev libxft-dev \ libxinerama-dev libxpm-dev libxrender-dev libxt-dev libyaml-dev linux-libc-dev m4 make odbcinst odbcinst1debian2 openjdk-11-jdk openjdk-11-jdk-headless patch pkg-config \ po-debconf unixodbc-dev uuid-dev x11proto-core-dev x11proto-dev x11proto-xext-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev \ texlive-extra-utils

)

export LOGICMOO_WS="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)"

if [[ -z "${LOGICMOO_WS}" ]]; then WS_MAYBE="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)"

if [[ -d "${WS_MAYBE}/packs_sys" ]]; then export LOGICMOO_WS=$WS_MAYBE else export LOGICMOO_WS=/opt/logicmoo_workspace fi

fi

if ! [[ "$PATH:" == "$LOGICMOO_WS/bin:"* ]]; then export PATH=$LOGICMOO_WS/bin:$PATH fi

echo LOGICMOO_WS=$LOGICMOO_WS echo PATH=$PATH

export PATH export LOGICMOO_WS

( cd $LOGICMOO_WS

mkdir -p bin/ mkdir lib/swipl/pack -p chmod 555 lib/swipl/pack

rm -rf swipl-devel/

git clone https://github.com/SWI-Prolog/swipl-devel.git swipl-devel

(cd swipl-devel/ git reset --hard HEAD git clean -f -x git checkout origin/master . -f git submodule update --init git pull --recurse-submodules patch -p1 --merge < ../dmiles-attvar.patch git status)

(cd swipl-devel mkdir -p build cd build cmake -DCMAKE_INSTALL_PREFIX=/opt/logicmoo_workspace -G "Unix Makefiles" .. #ninja #ctest -j 8 #ninja install make ctest -j 8 make install )

) stty sane

#if which swipl >/dev/null; then # echo swi-prolog exists #else # apt-add-repository -y ppa:swi-prolog/stable # apt-get update # apt-get install swi-prolog #echo git clone https://github.com/logicmoo/swipl-devel-unstable swipl-devel-unstable #(cd swipl-devel-unstable ; ../build.unstable) # (cd swipl-devel-unstable ; make clean ; make distclean ; ../build.unstable) #fi

Install R + RStudio on Ubuntu 16.04

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E084DAB9

Ubuntu 12.04: precise

Ubuntu 14.04: trusty

Ubuntu 16.04: xenial

Basic format of next line deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu <enter your ubuntu version>/

#add-apt-repository 'deb https://ftp.ussg.iu.edu/CRAN/bin/linux/ubuntu xenial/' #apt-get update #apt-get install r-base #apt-get install r-base-dev

Download and Install RStudio

#apt-get install gdebi-core #wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb #gdebi rstudio-1.0.44-amd64.deb #rm rstudio-1.0.44-amd64.deb

#add-apt-repository -y ppa:marutter/rrutter #apt-get update #apt-get install r-base r-base-dev #apt-get install r-cran-rserve r-cran-devtools

#add-apt-repository -y ppa:tsl0922/ttyd-dev #apt-get update #apt-get install ttyd

swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('auc',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('matrix',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('cplint',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('aleph',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt apt-get install libopenmpi-dev swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('mpi',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('libfgs',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('xlibrary',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('assertions',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('lambda',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('rtchecks',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('xtools',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('cplint_r',[interactive(false),package_directory(Dir)])" -g halt

swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('phil',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('trill',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('rocksdb',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

apt-get install libffi-dev

swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('https://github.com/JanWielemaker/rserve_client.git',[interactive(false),package_directory(Dir)])" -g halt

######## HDT ################ #curl -s http://download.drobilla.net/serd-0.26.0.tar.bz2 | tar -xj && \ # cd serd-0.26.0 && \ # ./waf configure && \ # ./waf && \ # sudo ./waf install;

#sudo apt-get install libraptor2-dev #echo swipl -f /dev/null -g "absolute_file_name(packs_lib,Dir),make_directory_path(Dir),pack_install('hdt',[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

Packs that are generally distributed

swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(logicmoo_utils,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

Packs that are user focus

swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(logicmoo_base,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(logicmoo_cg,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(logicmoo_ec,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(logicmoo_nlu,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(logicmoo_webui,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(prologmud,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(prologmud_samples,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(wam_common_lisp,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(lps_corner,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(planner_api,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

if id "prologmud_server" >/dev/null 2>&1; then echo "PrologMUD Server User exists" else echo "PrologMUD Server User being created" adduser --gecos "PrologMUD Server User" --system --home $PWD/packs_usr/prologmud_samples/prolog/prologmud_sample_games prologmud_server --disabled-password --shell /bin/bash fi

#chmod 777 /opt/logicmoo_workspace/packs_xtra/prologmud/runtime/cache #chmod 777 /opt/logicmoo_workspace/packs_xtra/prologmud/runtime

3,625 inferences, 6.003 CPU in 6.014 seconds (100% CPU, 604 Lips)

1,828,987,011 inferences, 316.932 CPU in 319.418 seconds (99% CPU, 5770916 Lips)

#swipl -g "time(load_files(['packs_xtra/logicmoo_nlu/prolog/pldata/nldata_talk_db_pdat'],[qcompile(auto),if_needed(true)])),halt." #swipl -g "time(load_files(['packs_xtra/logicmoo_nlu/prolog/pldata/nldata_freq_pdat'],[qcompile(auto),if_needed(true)])),halt." #swipl -g "time(load_files(['packs_xtra/logicmoo_nlu/prolog/pldata/nldata_BRN_WSJ_LEXICON'],[qcompile(auto),if_needed(true)])),halt." #swipl -g "time(load_files(['packs_xtra/logicmoo_nlu/prolog/pldata/nldata_colloc_pdat'],[qcompile(auto),if_needed(true)])),halt." #swipl -g "time(load_files(['packs_xtra/logicmoo_nlu/prolog/pldata/nldata_cycl_pos0'],[qcompile(auto),if_needed(true)])),halt." #swipl -g "time(qcompile('packs_sys/logicmoo_base/prolog/logicmoo/plarkc/logicmoo_u_cyc_kb_tinykb')),halt." #swipl -g "time(load_files(['packs_sys/logicmoo_base/prolog/logicmoo/plarkc/logicmoo_u_cyc_kb_tinykb'],[qcompile(auto),if_needed(true)])),halt." # echo "Compiling a 1gb file this might take about 5 minutes after this it will only take 6 seconds to load" #swipl -g "time(load_files(['packs_xtra/pldata_larkc/prolog/el_holds/el_assertions'],[qcompile(auto),if_needed(true)])),halt."

#if ![ -f $STANFORD_JAR ]; then # echo "Downloading $STANFORD_JAR ..."; # wget http://prologmoo.com/downloads/stanford-corenlp3.5.2-ALL.jar -O $STANFORD_JAR #fi

echo "to start the MUD type: ./startMUDServer.sh" su - prologmud_server

#echo git clone https://github.com/logicmoo/swipl-devel-unstable swipl-devel-unstable #(cd swipl-devel-unstable ; ../build.unstable) # (cd swipl-devel-unstable ; make clean ; make distclean ; ../build.unstable)

Packs that are generally distributed

#echo ./bin/swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_sys,Dir),make_directory_path(Dir),pack_install(prologmud,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

Packs that are user focus

#echo ./bin/swipl -f $LOGICMOO_WS/.swiplrc -g "absolute_file_name(packs_usr,Dir),make_directory_path(Dir),pack_install(prologmud_samples,[interactive(false),upgrade(true),package_directory(Dir)])" -g halt

(Non)"Packs" that create the remote interface

echo git clone --recursive https://github.com/logicmoo/swish-with-filesystem-editing packs_web/swish

echo git clone --recursive https://github.com/TeamSPoon/ClioPatria-filessytem-and-clausedb packs_web/ClioPatria-filessytem-and-clausedb

git clone --recursive https://github.com/TeamSPoon/plweb packs_web/plweb-realtime

Very large packs are way beyond most peoples scope and interest (or just too random)

echo git clone --recursive https://gitlab.logicmoo.org:8060/NomicMU/logicmoo_nlu/ packs_xtra/logicmoo_nlu/

echo git clone --recursive https://gitlab.logicmoo.org:8060/NomicMU/logicmoo_planners/ packs_xtra/logicmoo_planners/

echo git clone --recursive https://gitlab.logicmoo.org:8060/NomicMU/logicmoo_packages/ packs_xtra/logicmoo_packages/

echo git clone --recursive https://gitlab.logicmoo.org:8060/NomicMU/logicmoo_experimental/ packs_xtra/logicmoo_experimental/

```bash

function install_packer_linux() {

git push -u origin master --force

( mkdir -p linuxOnly cd linuxOnly git clone https://github.com/friguzzi/bddem.git git clone https://github.com/friguzzi/cplint.git git clone https://github.com/friguzzi/cplint_r.git git clone https://github.com/JanWielemaker/hdt.git git clone https://github.com/friguzzi/lbfgs git clone https://github.com/friguzzi/mpi.git git clone https://github.com/ArnaudFadja/phil.git git clone https://github.com/ArnaudFadja/phil_datasets.git git clone https://github.com/facebook/rocksdb git clone https://github.com/rzese/trill.git

@TODO title('Integrative statistics with R'). keywords([statistics,'R',bioinformatics,'machine learning']). home( 'http://stoics.org.uk/~nicos/sware/real' ).

cd .. )

( mkdir -p node_modules cd node_modules git clone https://github.com/ajaxorg/ace git clone https://github.com/Microsoft/monaco-editor git clone https://github.com/LogtalkDotOrg/ace ace-logtalk cd .. )

% git subtree add --prefix ClioPatria https://github.com/logicmoo/ClioPatria-filessytem-and-clausedb.git master --squash git clone https://github.com/TeamSPoon/swish.git git clone https://github.com/TeamSPoon/lps_corner.git

git clone https://github.com/logicmoo/ClioPatria-filessytem-and-clausedb.git ClioPatria

( cd ClioPatria/cpack

git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/accurator.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/amalgame.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/annotation_service.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/autocompletion.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/cloud.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/cluster_search.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/cluster_search_ui.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/command.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/cpack_repository.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/ecdemo.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/EDM.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/find_resource.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/foaf.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/foaf_user.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/isearch.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/jquery.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/media_cache.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/opmv.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/owl.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/pirates.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/prov.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/rda_gr2.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/rdf-mt.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/skos.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/skos_browser.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/statistics.git #git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/swish.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/tag_matcher.git #git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/trill_on_swish.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/versioned_graph.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/void.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/xmlrdf.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/yaz.git git clone http://cliopatria.swi-prolog.org/git/cpack-mirrors/yui3.git git clone https://github.com/ClioPatria/image_annotation git clone https://github.com/ClioPatria/rdf_qa git clone https://github.com/ClioPatria/webaccess cd ../.. )

}