Virtuoso installation stuck on "VAD Sticker vad_dav.xml creation" on 2nd attempt - virtuoso

I've been attempting to install virtuoso-opensource as per the README here: https://github.com/openlink/virtuoso-opensource
The first time I ran make, it breezed passed "VAD Sticker vad_dav.xml creation" to "Starting Virtuoso Server" and then complained netstat: command not found.
I installed netstat via sudo apt-get install net-tools, ran make again and now it's always stuck on "VAD Sticker vad_dav.xml creation" even after starting from scratch after deleting the repo folder and re-cloning it again. make install gets stuck at the same point.
Does anyone have any ideas as to how to get past this?
I'm running Ubuntu Server 20.04.1 LTS on an AWS EC2 instance.

I'll note the requirement for netstat to build VADs.
By far the most common cause of hang at that stage is a stagnant virtuoso pid lurking.
pkill virtuoso and run make again.
HTH

Related

fuse takes too long time to mount /root/.cache/doc and /root/.cache/gvfs when I run any file manager as root

This is the case where I have Ubuntu 20.04 LTS Desktop 64-bit freshly installed and that I execute the command "sudo nautilus":
Unmounting and then deleting these directories unfortunately does not solve my problem because they are recreated the next time the system is restarted.
Also on Ubuntu 20.10 these folders are mounted when I run the command "sudo nautilus" but the problem does not occur, so it must be some bug of 20.04, and I have to use that, which is the latest LTS.
This is the case where I installed nemo as a file manager:
I don't need nautilus but nemo and I also need to click "Open as Root" from the GUI. The problem is the same with "sudo nemo" too, so it doesn't depend on the file manager but on the fact that fuse for some reason takes too long time to mount those two directories.
How can I solve my problem?
EDIT:
The real problem is "xdg-desktop-portal" that if uninstalled, it solves the problem but this is a non-solution.
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/1878081

Install riscv spike simulator'; Failed to run dtc: No such file or directory Child dtb process failed

I try to install the riscv tool to my Ubuntu 18.04.4 LTS server.
Use the following git repo and follow its build procedure:
spike simulator
GNU tool
Installation (Newlib)
riscv pk
Issue spike pk hello, gives me
Failed to run dtc: No such file or directory
Child dtb process failed
I have already installed the device-tree-compiler through apt command.
And checked with which dtc, outputs /usr/bin/dtc
What might be the problem?
Any help would be appreciated.
I run those commands on a command-line interface, not capable to run any graphic user interface. Not sure if that causes this problem.
The spike simulator is my first attempt to execute riscv code, I am also welcome to other recommendations.
I figure it out by creating a symbolic link using ln -s $(which dtc) and the problem is solved.

ns found the right version of tclsh in /usr/bin/tclsh8.6 but it doesn't seem to be there anymore for ns2

When I write $ns in Linux terminal it shows this message:
"When configured, ns found the right version of tclsh in /usr/bin/tclsh8.6
but it doesn't seem to be there anymore, so ns will fall back on running the first tclsh in your path. The wrong version of tclsh may break the test suites. Reconfigure and rebuild ns if this is a problem. "
will it cause any problem with my TCL file being executed?
I am using ns-allinone-2.35.
For me this problem solved by upgrade tclsh.
sudo apt install tclsh
My Ubuntu version is 18.04 LTS
Check out this video
basically, type the command
sudo apt-get install tcl-dev tk-dev
and it will work fine
after the installation is complete, type
ns
and then the next line will be %
In my networking course, I had to learn NS2 related things. Our Teacher told us to modify TCP.cc files and other things related to that.
If this shows in your terminal, then your ns2 is installed in the wrong folder.
You must re-install ns2. Otherwise your updates in the files won't take effect.
tcl files won't cause any problems.
But modifying internal .cc files like tcp.cc, tcp_reno.cc will not take effect

What is the relation between RStudio and RServe?

I'm new to R and I decided to put R on a machine I have and see if I can remotely run code that is on my desktop computer.
While searching for "how to do" that, I came across the names "Rserve" and "RStudio". As far as I could tell, RServe is a package (actually, it seems to be the package) which I can use to configure the server, while RStudio is an IDE.
My question is: does RStudio use RServe "under the hood"? And, if it doesn't, then how does RStudio compare to RServe? (I.e., which one is better and why?)
[I figured out that this question could possibly be a duplicate, but I couldn't find any similar question]
Rserve is a client server implemenation written in pure c that starts a server and spawns multiple processes each with it's own R workspace. This is not threads but processes due to R's limitation on multithreading. It uses a QAP packing protocol as it's primary form of transport between the client and the server. You execute commands via the client (PHP, Java, C++) to the server and it returns you REXP objects that are essentially mappings to R's underlying SEXP data objects. Rserve also offers a websockets version that does will can transmit data through websockets but the api is not well documented. It also supports basic authentication through a configuration file.
Rstudio is a C++ and gwt application that provides a web based front end to R. AFAIK it uses json as it's primary transport and supports authentication through pam. Each user has a workspace configured in their home directory. It runs a server very similar but not the same as Rserve to communicate with R using RCPP. It also has it's own plotting driver used to wrap the plot device so that it can pickup the plots to be served to the ui. It has much more functionality such as stepping through your code from the ui and viewing workspace variables.
Functionally they are similar in that they provide a client/server connection to R but IMHO the comparison stops there.
I believe they are separate projects (though I could be wrong). I've never heard of RServe and there does not appear to be any mention of it in the documentation for RStudio. I have used and would recommend RStudio Server. It is relatively easy to set up and super easy to use once it is set up. This is a helpful guide to setting up a server on Amazon EC2:
#Create a user, home directory and set password
sudo useradd rstudio
sudo mkdir /home/rstudio
sudo passwd rstudio
#Enter Password
sudo chmod -R 0777 /home/rstudio
#Update all files from the default state
sudo apt-get update
sudo apt-get upgrade
#Be Able to get R 3.0
sudo add-apt-repository 'deb http://cran.rstudio.com/bin/linux/ubuntu precise/'
#Update files to use CRAN mirror
#Don't worry about error message
sudo apt-get update
#Install latest version of R
#Install without verification
sudo apt-get install r-base
#Install a few background files
sudo apt-get install gdebi-core
sudo apt-get install libapparmor1
#Change to a writeable directory
#Download & Install RStudio Server
cd /tmp
wget http://download2.rstudio.org/rstudio-server-0.97.551-amd64.deb
sudo gdebi rstudio-server-0.97.551-amd64.deb
#Once you’ve installed the above commands, you can now access RStudio through your local browser. Navigate to the Public DNS of your image on port 8787, similar to:
#http://ec2-50-19-18-120.compute-1.amazonaws.com:8787
The earlier answer about 3 years old provide old information, such as here.
Updated correction
RStudio is a firm that provides the open source RStudio IDE for R. They also sell commercial services such as RStudio Server Pro that markets itself with load balancing and related things. Apparently, the successuful open source project has lead the way to markets.
You may also mean Microsoft R Server, which is now called Microsoft Machine Learning Server?
There is also RServer by RStudio.
Anyway how to install both can be found here.

Bootstrap action for EMR

While bootstapping on AWS EMR - I am getting the following. Any clues how to resolve it?
/mnt/var/lib/bootstrap-actions/1/STAR: /lib/libc.so.6: version 'GLIBC_2.14' not found (required by /mnt/var/lib/bootstrap-actions/1/STAR)
It's probably caused by not having high enough version of libc6.
You can SSH into the EC2 instance the EMR job created by following this: Open an SSH Tunnel to the Master Node
Then update the packages, for example, if your instance uses ubuntu, you should do sudo apt-get update. The command depends on which distribution of linux you are creating on your ec2 instance. The default emr job uses Debian, and Amazon linux is built based on redhat.
See if this would work.
If this is actually the problem, you can add this update package command (with ignoring Y/N prompt) at the start of your bootstrap script.

Resources