Sbt download repository Forbidden - scala

Edit: Looks like this has been resolved. Links are working again.
#
I am unable to download sbt using the links provided on the site- I keep getting a forbidden error:
The two links from the sbt download website aren't working- http://www.scala-sbt.org/download.html.
and the debian package isn't working either:
https://dl.bintray.com/sbt/debian/Release
Are there any other ways to get the debian packages for SBT?
Thanks

The real solution is here https://www.gitmemory.com/issue/aws/aws-codebuild-docker-images/449/817884851
Just do the following in your script:
rm -f /etc/apt/sources.list.d/sbt.list
sudo apt-get update

These links were posted in the github issue for this:
https://downloads.typesafe.com/sbt/0.13.15/sbt-0.13.15.tgz
https://downloads.typesafe.com/sbt/0.13.15/sbt-0.13.15.zip

Related

Installation of protoc-gen-grpc-web

I am currently working on using grpc-web to write a simple client for my service. I have created a service.proto file which was successfully compiled using protoc. The problem arose when I tried to generate the gRPC-Web service client stub using the plugin protoc-gen-grpc-web which doesnt work despite having installed the latter.
Got the following error :
protoc -I=./ service.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./
protoc-gen-grpc-web: program not found or is not executable
--grpc-web_out: protoc-gen-grpc-web: Plugin failed with status code 1.
Any suggestions on how to solve this issue? Thank you!
You'll need to make the protoc-gen-grpc-web plugin executable and move it to a directory that is discoverable from your PATH environment variable.
From grpc-web/README:
For example, in MacOS, you can do:
$ sudo mv ~/Downloads/protoc-gen-grpc-web-1.2.1-darwin-x86_64 \
/usr/local/bin/protoc-gen-grpc-web
$ chmod +x /usr/local/bin/protoc-gen-grpc-web
You don't even have to install the plugin globally and make it discoverable from your PATH:
protoc accepts --plugin arguments to point to a required plugin. For protoc-gen-grpc-web (as for many others) there's even npm support, so you can get it with npm i --save-dev protoc-gen-grpc-web and then run protoc with --plugin=protoc-gen-grpc-web=./node_modules/.bin/protoc-gen-grpc-web
I'm using MacOS. You need to install this first with brew
$ brew install protoc-gen-grpc-web
The best solution that I could use for Linux based system was globally installing protoc-gen-grpc-web. This directly takes the files from the /bin of the node_modules files created globally across your system
sudo npm install -g protoc-gen-grpc-web

Git command: "WARNING: Could not find ssh-agent" Issue persist

The problem occured after:
When installed the Jekyll SEO Plugin with bundle install
installing GEM jekyll-sitemap 0.11.0
When added a GEMfile in source file C:\Users\User\Documents\GitHub\PROJECT
Other Issues:
When I request: Jekyll serve --watch
I get the following error:
I have applied guidelines from:
http://haacked.com/archive/2011/12/19/get-git-for-windows.aspx/
https://stackoverflow.com/a/24368751/7160844
but without succes.
So far i found the ssh-agent.exe in C:\Users\user\Desktop\cmder\vendor\git-for-windows\usr\bin
I was planning to re install Jekyll, but will that suffice?
What are the options?
Edit #1:
I applied bundle exec jekyll serve / bundle exec jekyll serve --watch
Edit #2:
Issue in _config.yml is solved, I can host locally again!
Yet I have to maintain the use of bundle exec jekyll serve --watch
And WARNING: Could not find ssh-agent is still occuring.

jspm hot reloading install - command not found after global install

i try to install the hot reload module of jspm using the chokidar-socket-emitter. Installation works like charme, but after that it is not possible to start the watch task as described here: http://jspm.io/0.17-beta-guide/hot-reloading.html
Here is my install log:
XXXXXMacBookPro:dasding xxxxxx$ sudo npm i -g chokidar-socket-emitter
\
fsevents#1.0.12 install /usr/local/lib/node_modules/chokidar-socket-emitter/node_modules/chokidar/node_modules/fsevents
node-pre-gyp install --fallback-to-build
[fsevents] Success: "/usr/local/lib/node_modules/chokidar-socket-emitter/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v14-darwin-x64/fse.node" is installed via remote
chokidar-socket-emitter#0.3.1 /usr/local/lib/node_modules/chokidar-socket-emitter
├── socket.io#1.4.6 (has-binary#0.1.7, debug#2.2.0, socket.io-parser#2.2.6, socket.io-adapter#0.4.0, engine.io#1.6.9, socket.io-client#1.4.6)
└── chokidar#1.5.2 (path-is-absolute#1.0.0, inherits#2.0.1, glob-parent#2.0.0, async-each#1.0.0, is-binary-path#1.0.1, is-glob#2.0.1, readdirp#2.0.0, anymatch#1.3.0, fsevents#1.0.12)
XXXXXMacBookPro:dasding xxxxxx$ chokidar-socket-emitter
bash: chokidar-socket-emitter: command not found
XXXXXMacBookPro:dasding xxxxxx$
Does anyone has any idea why he is unable to find the command? i have no idea how to fix this, global installs always used to work without any problem.
thanks in advance
Ok, in case someone faces the same problem - my current node.js installation was unable to handle the latest version of chokidar-socket-emitter, so a lower version was installed, but the docs refered to the latest version, so there never was a command that could have been found. after updating my node.js installation everything worked like charme.

Installing phpw55-mcrypt on RedHat enterprise 5

Thank you in advance for reading this question,
I am trying to run a Laravel web application on an old RedHat server that is provided by my company. I am getting the error that MCRYPT is not active (it is not installed). When trying to run a yum install php55w-mcrypt yum gives the error
--> Finished Dependency Resolution
php55w-mcrypt-5.5.26-1.w5.x86_64 from webtatic-el5 has depsolv
--> Missing Dependency: libltdl.so.3()(64bit) is needed by p
pt-5.5.26-1.w5.x86_64 (webtatic-el5)
Error: Missing Dependency: libltdl.so.3()(64bit) is needed by
ypt-5.5.26-1.w5.x86_64 (webtatic-el5)
You could try using --skip-broken to work around the problem
I have tried installing the dependency, but I can not seem to find the libltdl.so.
Does anyone know if there is a workaround / does anyone know where to find the library?
Many thanks
I found the required libtools here:
http://rpmfind.net/linux/rpm2html/search.php?query=libtool
wget < correct file type for your server >
yum install lib*
rm lib*
Then searched on the same webpage for libltdl.so.3()
wget < correct file type for your server >
yum install lib*
After installing the dependencies the yum install php55w-mcrypt could be installed and laravel worked like a charm!

Can anyone help me with installation of varnish vagent2

I want to install this varnish vagent2
https://github.com/varnish/vagent2
I am working around it but it is not installing.. it is giving me following error..
root#ns5 [/usr/local/src/vagent2-master]# ./autogen.sh
+ aclocal
configure.ac:65: error: pkg.m4 missing, please install pkg-config
configure.ac:65: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: error: echo failed with exit status: 1
now i have pkg-config / m4 / latest version of automake / autoconf installed...
yet it is giving this issue. Can anyone guide me as how can i get through the same ?
You're missing pkg.m4 it seems?
Check the spec files in the redhat/ directory to determine dependencies. We tested this on centos6 and I believe centos5, but I currently lack easy access to a machine to test from, so before I pursue this further, I suggest you check the spec file.
If that doesn't help, open an issue on github, as we don't generally follow stackoverflow :)
You need to install pkgconfig. On a mac, you may first need to install "mac ports" ... here is an article describing the solution:
http://www.fantageek.com/318/install-pkg-config-for-mac-osx/
Long story short. To get varnish-agent working happily on centos5 you needed to manually update automake and autoconf, which means that aclocal may not look into the right directory for pkg.m4.
Assuming you have installed pkgconfig using yum, line 22 in autogen.sh should look like this below.
aclocal -I /usr/share/aclocal
To make this a little easier, I have changed autogen.sh to include the above changes. See commit below, In addition, I have provided a Vagrantfile to illustrate how you can build a happy centos5 vm for varnish-agent. Hope this helps.
https://github.com/varnish/vagent2/commit/3921083f5fef12f06527e3361cc880121aa6b66b