How can I install hsqml with Windows 10 - qt

When I install hsqml, I get the following error:
cabal install hsqml
Resolving dependencies...
Configuring hsqml-0.3.4.1...
Failed to install hsqml-0.3.4.1
Build log ( C:\Users\wjsgm\AppData\Roaming\cabal\logs\hsqml-0.3.4.1.log ):
cabal: Entering directory 'C:\Users\wjsgm\AppData\Local\Temp\cabal-tmp-16012\hsqml-0.3.4.1'
[1 of 1] Compiling Main ( C:\Users\wjsgm\AppData\Local\Temp\cabal-tmp-16012\hsqml-0.3.4.1\dist\setup\setup.hs, C:\Users\wjsgm\AppData\Local\Temp\cabal-tmp-16012\hsqml-0.3.4.1\dist\setup\Main.o )
Linking C:\Users\wjsgm\AppData\Local\Temp\cabal-tmp-16012\hsqml-0.3.4.1\dist\setup\setup.exe ...
Configuring hsqml-0.3.4.1...
setup.exe: Missing dependencies on foreign libraries:
* Missing C libraries: Qt5Core, Qt5Gui, Qt5Widgets, Qt5Qml, Qt5Quick
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Leaving directory 'C:\Users\wjsgm\AppData\Local\Temp\cabal-tmp-16012\hsqml-0.3.4.1'
cabal: Error: some packages failed to install:
hsqml-0.3.4.1 failed during the configure step. The exception was:
ExitFailure 1

Related

Error deploying shiny app utilizing hydromad

So here is the error i am getting from the console. I understand that hydromad package is not on cran but I have added it as secondary repos in packages(Tools options in R studio) and in .R profile file. Still I am getting this error
****Preparing to deploy application...DONE
Uploading bundle for application: 2120925...DONE
Deploying bundle: 3058356 for application: 2120925 ...
Waiting for task: 720810692
building: Parsing manifest
building: Building image: 3408182
building: Installing system dependencies
building: Fetching packages
error: Building package: hydromad
########################## Begin Task Log ################################
[2020-04-24T06:51:09.225825780+0000] Execute script: packages/build/sys.sh
+ set -e
+ apt-get update -qq
+ apt-get install -y libapparmor-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
libapparmor-dev
0 upgraded, 1 newly installed, 0 to remove and 114 not upgraded.
Need to get 67.8 kB of archives.
After this operation, 229 kB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libapparmor-dev amd64 2.10.95-0ubuntu2.11 [67.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 67.8 kB in 0s (0 B/s)
Selecting previously unselected package libapparmor-dev:amd64.
(Reading database ... 119718 files and directories currently installed.)
Preparing to unpack .../libapparmor-dev_2.10.95-0ubuntu2.11_amd64.deb ...
Unpacking libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libapparmor-dev:amd64 (2.10.95-0ubuntu2.11) ...
########################### End Task Log #################################
Error: Unhandled Exception: Child Task 720810693 failed: Error building image: Error fetching hydromad (0.9-26) source. <CRANPackageSource repo='http://cran.rstudio.org'> unable to satisfy package: hydromad (0.9-26)
In addition: Warning message:
In FUN(X[[i]], ...) :
Package 'hydromad 0.9-26' was installed from sources; Packrat will assume this package is available from a CRAN-like repository during future restores
Execution halted****
Can anyone help me resolve this error? Will be grateful
Welcome to StackOverflow! Your question is quite specific, so I would recommend to use a more specialized resource. The good news is that package hydromad has its own forum

Building error with IJulia

I used to use Julia in Jupyter notebook. I uninstalled yesterday the .julia directory because of other issues and after Pkg.add(IJulia) Im getting a building error related to ZMQ. the full error is below.
julia> Pkg.build("ZMQ")
INFO: Building Homebrew
Already up-to-date.
INFO: Building ZMQ
Warning: staticfloat/juliatranslated/zeromq32-3.2.5 already installed, it's just not linked.
Error: Formulae found in multiple taps:
* staticfloat/juliadeps/zeromq32
* staticfloat/juliatranslated/zeromq32
Please use the fully-qualified name e.g. staticfloat/juliadeps/zeromq32 to refer the formula.
=================================[ ERROR: ZMQ ]=================================
LoadError: failed process: Process(`/Users/pacagal/.julia/v0.5/Homebrew/deps/usr/bin/brew link staticfloat/juliatranslated/zeromq32 --force`, ProcessExited(1)) [1]
while loading /Users/pacagal/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 35
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: ZMQ had build errors.
- packages with build errors remain installed in /Users/pacagal/.julia/v0.5
- build the package(s) and all dependencies with `Pkg.build("ZMQ")`
- build a single package by running its `deps/build.jl` script
================================================================================
I have also run the build.jl file but I am getting an error too.
I was having the same issue this morning. In the terminal I ran brew install zmq and that resolved the issue.
I still had to run julia>Pkg.build("Nettle") after installing zmq and after that IJulia is running fine.

Error while installing "nloptr_1.0.4.tar.gz" from local

When i tried to install nloptr_1.0.4.tar.gz from local, It needed another unix library nlopt-2.4.2.tar.gz which I got it resolved from the following thread Error while installing a tar.gz package in R
But, even after that the package is not getting installed
It throws the following error,
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/home/cloudera/R/x86_64-redhat-linux-gnu-library/3.2/nloptr/libs/nloptr.so':
/home/cloudera/R/x86_64-redhat-linux-gnu-library/3.2/nloptr/libs/nloptr.so: undefined symbol: nlopt_set_maxtime
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/cloudera/R/x86_64-redhat-linux-gnu-library/3.2/nloptr’
For the above error, I got a lead from the following link:https://cran.r-project.org/web/packages/ROracle/INSTALL
and http://ab-initio.mit.edu/wiki/index.php/NLopt_Installation
Based on the above links, I had to set LD_LIBRARY_PATH variable to /usr/local/lib and /usr/local/include
Even after setting the above Environment variable, R CMD INSTALL nloptr_1.0.4.tar.gz is not getting installed and throwing the same error.
The fix is easy. On a Debian/Ubuntu system do
sudo apt-get install libnlopt-dev
as you always need the development package to compile a given library. It will then be found, and nloptr will install without a hitch.
Similarly on a RH/FC/CentOS with rpms.
Now, when I helped Jelmer rewrite the configuration for nloptr, we did make sure it worked both ways: with an install nlopt library, and without. You seem to stuck in the middle with one that is installed, but different ("missing symbol"). If you cannot uninstall that 'wrong' libnlopt, I would recommend altering the nloptr sources to not check for it but rather always build itself against a copy of nlopt 2.4.2 which it will download and compile statically.

Error while Installing sparkR

I'm trying to install SparkR
library(devtools)
install_github("amplab-extras/SparkR-pkg", subdir="pkg")
but then I find this error
Launching sbt from sbt/sbt-launch-0.13.6.jar
Invalid or corrupt jarfile sbt/sbt-launch-0.13.6.jar
make: *** [target/scala-2.10/sparkr-assembly-0.1.jar] Error 1
ERROR: compilation failed for package ‘SparkR’
* removing ‘/Users/apple/Library/R/3.2/library/SparkR’
Error: Command failed (1)
Read before proceeding:
amplab-extras/SparkR-pkg is no longer maintained. Current versions of SparkR are shipped with Spark itself. See also Installing of SparkR
Sbt download links in the repository are invalid and what you get is actually a HTML file. You can either correct URL2 in pkg/src/sbt/sbt so it points to:
http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/0.13.6/sbt-launch.jar
or download and install sbt, clone the repository:
git clone https://github.com/amplab-extras/SparkR-pkg.git
go to src:
cd SparkR-pkg/pkg/src
assembly:
sbt assembly
and install:
R -e "devtools::install('.')"

Issue in QT 5.2.1 app in linking libquazip.so library during making .deb package for ubuntu 14.04

I am making .deb package for the QT 5 .2.1 desktop app for ubuntu 14.04 64 bit. I have installed QT 5.2.1 on Ubuntu 14.04 and made a demo app for the testing purpose in which I have used quazip library. During making the .deb package of the app I am getting the below issue.
dpkg-shlibdeps: error: couldn’t find library libquazip.so.1 needed by debian/demoapp/usr/bin/DemoApp1 (ELF format: ‘elf64-x86-64’; RPATH: ‘’)
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/demoapp/usr/bin/DemoApp1 was not linked against libz.so.1 (it uses none of the library’s symbols)
dpkg-shlibdeps: error: cannot continue due to the error above
Note: libraries are not searched in other binary packages that do not have any shlibs or symbols file.
To help dpkg-shlibdeps find private libraries, you might need to use -l.
dh_shlibdeps: dpkg-shlibdeps -Tdebian/demoapp.substvars debian/demoapp/usr/bin/DemoApp1 returned exit code 2
make: * [binary-predeb-IMPL/demoapp] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
When I copy the libquazip.so.1 at the path /usr/lib in my machine then I got the below issue .
dpkg-shlibdeps: error: no dependency information found for /usr/lib/libquazip.so.1 (used by debian/demoapp/usr/bin/DemoApp1)
dh_shlibdeps: dpkg-shlibdeps -Tdebian/demoapp.substvars debian/demoapp/usr/bin/DemoApp1 returned exit code 2
make: * [binary-predeb-IMPL/demoapp] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
My cmakelist.txt file as per below.
cmake_minimum_required(VERSION 2.8.9)
project(DemoApp1)
set (CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} “;/opt/Qt5.2.1/5.2.1/gcc_64/lib/cmake;”)
find_package(Qt5Widgets REQUIRED)
include_directories(/home/manojpatidar/Manoj/Work/QT_WORK/Linux_Package/demoapp-1.0/lib/quazip-0.5.1/quazip)
link_directories(/home/manojpatidar/Manoj/Work/QT_WORK/Linux_Package/demoapp-1.0/lib/quazip-0.5.1)
add_executable(DemoApp1 main.cpp mainwindow.cpp moc_mainwindow.cpp mainwindow.ui)
target_link_libraries(DemoApp1 quazip z)
install(TARGETS DemoApp1 RUNTIME DESTINATION bin)
qt5_use_modules(DemoApp1 Widgets)
My Debian control file is as per below .
Source: demoapp
Section: games
Priority: extra
Maintainer: Manoj Patidar
Build-Depends: debhelper (>= 8.0.0), cmake, qtbase5-dev, cdbs
Standards-Version: 3.9.4
Package: demoapp
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Description
Description will come here
I think I need to add some dependencies for quazip at the line “Depends: ${shlibs:Depends}, ${misc:Depends}” . Is there anything I have missed ? . Please have look into the issue and let me know where I did wrong.
Thanks

Resources