can not get scion_server to be created using runghc - eclipse

I downloaded the scion cabal and am attempting to created scion_server
I ran all of the runghc Setup (configure/build/install)
The Haskell libraries are installed, but the scion_server is not in the ~/.cabal/bin
I have to use a --user on configure so I can install it on just my account.
Any thoughts?

Try unregistering the scion package with GHC and reinstalling it again. (That usually fixes these kinds of issues for me.)
~/scion $ ghc-pkg unregister scion
~/scion $ cabal install
Note that cabal install in the proper directory is the same as "configure --user/build/install".

I found the problem when doing a verbose on configure.
The server option by default was set to False.
When I did
runghc Setup configure --flags="server"
I was able to get the server file

Related

Cannot install QuickCheck for Haskell: "runInteractiveProcess: permission denied"

When I run the commands
cabal update
cabal install QuickCheck
on windows powershell, or
cabal install --lib --package-env . QuickCheck
I get runInteractiveProcess: permission denied. I have found that I need to run "/scripts/securetmp" and un-secure my /tmp. How do I do that? What does it mean to run /scripts/securetmp?
I was asked for the link to the advice, here are 2 links from 2 different people who said the same:
1.In one of the answers on a similar question on StackOverflow:
Can't install and use Cabal (Haskell) on CentOS Server - zlib-0.5.4.1 failed during the building phase
2.On a website, though it's in Russian, but says the same thing:
https://coderoad.ru/24461456/%D0%9D%D0%B5-%D1%83%D0%B4%D0%B0%D0%B5%D1%82%D1%81%D1%8F-%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-%D0%B8-%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D1%8C-Cabal-Haskell-%D0%BD%D0%B0-%D1%81%D0%B5%D1%80%D0%B2%D0%B5%D1%80%D0%B5-CentOS-%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0
On both those links there are other answers, that talk about running some bootstrap.sh script. That might be another solution, but I don't understand how to do it.
Try to install it using :cabal --http-transport=plain-http install QuickCheck, with this you will be forcing cabal not to use powershell's webclient, it worked for me.

Cannot use Swift on Ubuntu 18.04

After conscientiously following the install instructions on Linux from swift.org, I encounter an issue where it is not possible to compile anything on a Ubuntu 18.04 machine. The REPL seems to work but during compilation (when calling swift build) the following error appears:
/usr/bin/ld: cannot find -lstdc++
There are more details in the full bug report [SR-9093]. I don't know at all what to do to solve this issue, there are similar problems already mentioned in other bug reports, for instance on this really old one [SR-35].
What should I do?
Thank you
I am assuming that you had already installed the libstdc++ successfully and you have set the permissions properly. But I really doubt that it was installed correctly but it was installed with corruption of some sort. The corruption occurred because you didn't install libstdc++ via a package manager. Result was some form of weirdness in the package manager database which effected the overall functioning system. Exactly why adding something to a folder should change anything at all. I don't know why this happens, unless the folder is hot i.e symbolically linked to a program which doesn't have any tolerance for hacks like simply copying a file into the folder. So for now try to install the libstdc++ again. Below is the link to the file to again download the correct program and this is compatible with amd64.
http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
And below are some link to help
https://ubuntuforums.org/showthread.php?t=1425470
https://ubuntuforums.org/showthread.php?t=808045
https://ubuntuforums.org/showthread.php?t=808045
https://packages.ubuntu.com/search?keywords=libstdc%2B%2B
https://packages.ubuntu.com/xenial/amd64/libstdc++6
Install libstdc++
sudo apt install libstdc++6
It seems possible that the apt install did not run the ldconfig program, which should be run to add the library to the list of those which ld.so knows about.
It looks like you can do it manually:
sudo ldconfig
IMPORTANT CAVEAT: I don't have Ubuntu and haven't been able to test this. And it's a sudo command. Run at your own risk, YMMV, etc.
If this does not work, it's possible that a file called /etc/ld.so.conf is not set up to search the directory where libstdc++ ended up. I wouldn't dare try to describe how to fix that.
sudo apt install -f
The command above should install any missing dependencies.

collectd-how to install write_riemann plugin

I'm new to collectd and Riemann. Im essentially trying to direct collectd logs to a riemann server instance. I understand that I need write_riemann plugin installed. I tried compiling the source files for write_riemann available online, but it includes a file called "riemann.pb-c.h", which is no where to be found. Please help!
Download the binary. After running the build script, while running the configure script include "--enable-write_riemann", this should install it. I had a lot of dependencies missing on CentOS, which threw a lot of errors. Once they were installed, write_riemann plugin was compiled and installed. Another issue you might face while installing the dependency is not able to find the right packages for protobuf-c.I was using yum package installer. Go to sudo vi /etc/yum.repos.d/epel.repo and change enabled from 0 to 1. After this, the protobuf-c processor was recognised while running the configure script. This solved my issue. Hope it does yours too!

jenkins EnvInject plugin does not install

I have jenkins 1.532.1.
When I want to install the EnvInject Plugin, it shows a warning:
This plugin makes it possible to have an isolated environment for your
jobs. Warning: This plugin is built for Jenkins 1.445 or newer. It may
or may not work in your Jenkins.
I go ahead and install it. It says successful but then I can see that it is not installed.
I've already tried restarting jenkins.
Does anyone know whether this plugin was discontinued or whether I will have to downgrade jenkins or any other suggestions?
I got it.
Downloaded the latest jenkins.war and replaced the current one with it.
On ubuntu, here are the steps:
sudo /usr/local/etc/rc.d/jenkins stop
cp jenkins.war /usr/share/jenkins/
sudo /usr/local/etc/rc.d/jenkins start

Jenkins default plugins are not available

I tried to install plugins from jenkins web interface and using command line as well. I am failed on both:
After installing jenkins-1.429-1.1.noarch.rpm, when I go to manage plugins and search in available plugins like phpcpd: pdepend: phpcs:phpdoc:phploc: but those plugins are not available in the list. So strange.
When I try to create build , I get error like http://pastie.org/2516863
On the top of that I manually try to install the plugins with command
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle
, but unfortunately, I get error like
Failed to authenticate with your SSH keys. Proceeding with anonymous access
Installing checkstyle from update center
Can somebody suggest me why I am missing default plugins in jenkins and also why I am getting such ssh authentication error from command line.
I am looking forward to solve this issue sooner!
Thanks in advance!
Those php related plugins don't come with jenkins, we need to install them manually. In case of redhat, I followed following process to install the plugins:
yum search plugin_name
yum install plugin name
how to install phpunit? it is different from previous method:
pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit