Installing twisted in shared hosting - python-2.7

I am trying to install twisted in my shared hosting and ended up with this error.
unable to execute gcc: Permission denied
error: command 'gcc' failed with exit status 1
I contacted my provider and they confirmed they cannot install it.
Is there any manual way of installing using the source file. I am able to download the package using wget.
Now I have folder with name "Twisted-17.9.0", Is there any way install using source files.
My hosted server is of Cento OS

Related

No SSl/TLS CA certificates using nimble

I am using Msys2 to run and compile c/nim programs, I cloned a repo that has a .nim file that I want to run but didn't have ceration packages such as nimcrypto so I used the command
nimble install nimcrypto
but got this error
$ nimble install nimcrypto
Prompt: No local packages.json found, download it from internet? [y/N]
Answer: y
Downloading Official package list
Tip: 5 messages have been suppressed, use --verbose to show them.
Error: Refresh failed
... Could not download: No SSL/TLS CA certificates found.
Where do I get these certificates from and how do I add them to nimble
downloaded nimble using this
downloaded nim using this
Nim Compiler Version 1.4.6 [Windows: amd64]
Compiled at 2021-05-03
Copyright (c) 2006-2020 by Andreas Rumpf
git hash: 09db720eff0ec9e160debab126af37b1a4df296c
active boot switches: -d:release
Manually downloaded the cert to /usr/bin from this link
and this seems to solve the issue

Installing RQuantLib on RStudio AWS AMI

there have been some similar questions (Installing RQuantLib on Linux), but none related to the AWS RStudio environment. After trying the usual rute
install.packages('RQuantLib');
library(devtools)
install_github("eddelbuettel/rquantlib")
I get the following error (in both cases):
configure: error: Please install QuantLib before trying to build RQuantLib.
ERROR: configuration failed for package ‘RQuantLib’.
Also, all of a sudden (after upgrading R on my local machine from 3.4.4 to 3.5.0) RQuantLib stopped working also on my local Windows machine:
Error in system(full, intern = TRUE, ignore.stderr = quiet, ...) :
running command '"C:/PROGRA~1/R/R-35~1.0/bin/x64/R" --no-site-file --no- environ --no-save --no-restore --quiet CMD config CC' had status 1
After following the directions on the Github page I tried the following:
if (!require("drat")) install.packages("drat")
drat::addRepo("ghrr")
install.packages("RQuantLib", type="binary")
but got the follwoing error:
Warning in install.packages :
unable to access index for repository https://ghrr.github.io/drat/bin/windows/contrib/3.5:
cannot open URL 'https://ghrr.github.io/drat/bin/windows/contrib/3.5/PACKAGES'
Warning in install.packages :
package ‘RQuantLib’ is not available (as a binary package for R version 3.5.0)
What else could I try? The AWS problem has a higher priority, although I would really like to be able to use RQuantLib on my local machine again, so any help would be really appreciated.
A small end note: The RQuantLib library compiles succesfully on the Debian 16.04 AWS AMI, but not on the RStudio AMI.
Windows builds, just like Unix builds, require QuantLib to be present which has its challenges.
The most recent upload restores this ability, utilising a GitHub repo with a prebuilt version of QuantLib. Try installing RQuantLib 0.4.5 now on Windows; you should get a binary from CRAN as can been on the CRAN page.

Hyperledger Composer "Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND" on windows 10

I'm trying to run the following blockchain tutorial on Windows 10
https://hyperledger.github.io/composer/tutorials/developer-guide.html
Everything went fine (all npm installs, fabric tools, download fabric, start fabric, create the project archive, composer runtime install) untill I ran the following command:
composer network start --card PeerAdmin#hlfv1 --networkAdmin admin --networkAdminEnrollSecret adminpw --archiveFile tutorial-network#0.0.1.bna --file networkadmin.card
And
had this error:
Starting business network from archive: tutorial-network#0.0.1.bna
Business network definition:
Identifier: tutorial-network#0.0.1
Description: Tuto DevWorks
× Starting business network definition. This may take a minute...
Error: Error trying to instantiate composer runtime. Error: Error: Invalid results returned ::NOT_FOUND
Command failed
Previous successful command was:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName
tutorial-network √ Installing runtime for business network
tutorial-network. This may take a minute... Command succeeded
My configuration is:
WIN 10
Node v8.9.1
npm 5.5.1
Docker version 17.09.0-ce, build afdb6d4
git version 2.14.1.windows.1
I also tried with another bna archive and had the same issue.
Thanks for your help!
If this message occurs on the stage of instantiating the composer chaincode, one must check that there's a fabric channel defined and peers have joined it.
we don't, at present, support Windows 10. We support the platforms shown here:
https://hyperledger.github.io/composer/unstable/installing/development-tools.html
I was facing the issue in MacOS environment. I found that I haven't created the channel and joined the peers. Once I did that, I could start business network and ping.

Unable to Install GTK3.4(libgtk-3.so.0) to run firefox in AWS ec2

I am trying to run my selenium script which has been developed in Selenium 2.53.0 using firefox 46 in a headless AWS linux server. AWS has GTK2.0 and Firefox 46 is compatible with GTK3.4 and above.
I tried to install GTK 3.4 from the given links and it is installed but still I am getting error
XPCOMGlueLoad error for file /usr/local/firefox/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
I do not have libgtk-3.so.0 installed in my system hence the error. If somebidy can help me on how to upgrade/install GTK 3.4 along with the said libraries to run my firefox in AWS EC2 server it will be really helpful.
The Links i have used : http://ftp.gnome.org/pub/gnome/sources/gtk+/3.4/gtk+-3.4.0.tar.xz
ftp://fr2.rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/g/gtk3-3.22.15-2.fc27.x86_64.rpm
to install the GTK3
Installed Firefox 46 using the Code https://gist.github.com/joekiller/4144838 from here.
Thanks.

Running EMR with Cascading SDK failed

I was following this tutorial for installing Cascading to EMR:
http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/CreateCascading.html
But it failed because of bootstrap action installing the cascading-sdk. The corresponding logs is here: http://pastebin.com/jybHssTQ. As seen from the logs, it's failed because of apt-get not found. Seriously?
I also checked the sdk installation script, and found option to disable installing screen with --no-screen. It is still failed, with different error http://pastebin.com/T6CvA2H1
And now it is because of permission denied. What?
It's official guide, but I can't seem to run it. Any idea?
Rather than changing the script first, try a different EMR AMI version.
AMI versions up until 2.4.8 use Debian OS, where apt-get will work, but this runs Hadoop 1.x. AMI versions 3.0.x run Hadoop 2.2 and use Amazon Linux, which uses Yum.
See Below:
http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/ami-versions-supported.html
Also, try to add the "--tmpdir" option to get around the "Permission Denied" error.