Can't uncompress archive with maven 3 - maven-3

I downloaded maven 3 archive on my ubuntu system but can't unpack it. Did anybody know how to resolve this?
I get this error:
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
P.S. I tried both archives (.tar.gz and .zip) but the error remains.

What about the checksum? Did you test it with your archive?
Run md5sum apache-maven-3.0.3-bin.tar.gz and compare the result with the checksum on the Maven download-site (507828d328eb3735103c0492443ef0f0)
Maybe your archive was corrupted.

Find and install Gnu Tar and use that. The maven assembly plugin creates tar files that are incompatible with some OS default implementations.

Related

Cocoapods error installing libopencv-contrib

I am using this opencv3 library for react native, but when I try to install IOS dependencies using pod install i recieve this error, can someone help me?
[!] Error installing libopencv-contrib
[!] /usr/bin/unzip /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip -d /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817
Archive: /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip or
/var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip.zip, and cannot find /var/folders/hj/5y2w85bn64n0t7mmzcc9rtbc0000gn/T/d20200815-25128-1yye817/file.zip.ZIP, period.
The following silly fix solved the issue for me:
run pod spec edit libopencv-contrib
locate the source url (a dropbox link)
replace ?dl=0 with ?dl=1
save the file && run pod install
Now the installation should complete without errors.

unable to install libpng12-0 on kali

I am using the latest version of Kali.
I installed the Cisco Packet Tracer version 7.2.
I ran it I got this error
./PacketTracer7: error while loading shared libraries: libpng12.so.0:
cannot open shared object file: No such file or directory
Now I am going to install libpng12
but I get this error
(Reading database ... 485972 files and directories currently
installed.) Preparing to unpack libpng12-0_1.2.50-2+deb8u3_amd64.deb
... Unpacking libpng12-0:amd64 (1.2.50-2+deb8u3) ... dpkg: error
processing archive libpng12-0_1.2.50-2+deb8u3_amd64.deb (--install):
unable to install new version of
'/usr/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
Errors were encountered while processing:
libpng12-0_1.2.50-2+deb8u3_amd64.deb
I am using Debian sources list
https://packages.debian.org/jessie/amd64/libpng12-0/download
I have been through the same problem a solution I found was to :
1-Extract the content of the debian package
mkdir out; dpkg -x libpng12-0_1.2.50-2+deb8u3_amd64.deb ./out
2-Copy the file libpng12.so.0 to your Packet tracer's installation directory inside the .../pt/bin folder like this:
cp ./out/lib/x86_64-linux-gnu/libpng12.so.0 /opt/packettracer/bin/
i also had the same problem. I just installed it and strarted it up
packettracer
then it says
Starting Packet Tracer 7.2.1
but it doesnt start.
and when I tried to run it from the opt/pt directory ./PacketTracer it gives me
./PacketTracer7: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
So what i did was download the libpng12.o.0 from source
https://packages.debian.org/jessie/amd64/libpng12-0/download
choose your architecture and mirror.Next go to the directory where the download is located.
cd Downloads
extract the package using
dpkg -x libpng12-0_1.2.50-2+deb8u3_amd64.deb .
open the lib directory
cd lib/x86_64-linux-gnu/
list using
ls -alis
copy the libpng12.o.0 to where the packet tracer was saved if you installed it using default location using
cp libpng12.so.0 /opt/pt/bin/
type
cd
to move to home dir. Then type
packettracer
and you are good to go.
kali-linuxlibpng12libpngubuntu
after downloading the packettracer
open terminal ctrl+Alt+T
step1: packettracer
It gives error like this
./PacketTracer7: error while loading shared libraries: libpng12.so.0:
cannot open shared object file: No such file or directory
step2:so we want download libpng12.so.0
step3:choose which you want and download it
example:http.us.debian.org/debian
step4:go to the downloads folder right click on .deb file and run it as software installation
step5:open terminal ctrl+Alt+T type
packettracer
starting packettracer

Trying to build OpenSfm but my OpenCv build doesn't have the proper Cmake file

I tried running 'python setup.py build' to build Open SfM. I had used the instructions off the OpenCV website to build OpenCV using gitbash and Cmake in my lib folde without any errors.
However the OpenSfM build error says: Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
I can't for the life of me find these files. I tried downloading the OpenCv package again and running it through a Cmake GUI but I get an error saying there's no CmakeLists.txt files.
Help?
You need to not just generate the files using CMake but also use either an application like VisualStudio or command line to build the files.
Once you build the files, the OpenCVConfig.cmake files are generated, which you use to point to the OpenSFM compilation.

Can't build and run react-native project on Mac

Referring this issue, I've the same problem. I've MacOs El Captain on VMware.
Node v. 7.8.0
npm v.4.6.1
react-native-cli 2.0.1
react-native 0.46.4
Xcode v. 8.2.1
I've two issues:
- when trying to init a new react-native project, the packages fetching hangs on getting react-native 0.46.4 package from repo. Other packages were downloaded successfully. So I've execute npm install from Windows and then copied the node_modules folder on Mac.
- when trying to run the project on iOS simulator I recieve the following error:
** BUILD FAILED **
...
In file included from /Users/michelebombardi/Desktop/ReactNativeProjects/caliup/node_modules/react-native/React/../third-party/folly-2016.09.26.00/folly/Bits.h:70:
/Users/michelebombardi/Desktop/ReactNativeProjects/caliup/node_modules/react-native/React/../third-party/folly-2016.09.26.00/folly/detail/BitIteratorDetail.h:21:10: fatal error: 'boost/iterator/iterator_adaptor.hpp' file not found
#include <boost/iterator/iterator_adaptor.hpp>
The following build commands failed:
CompileC /Users/michelebombardi/Desktop/ReactNativeProjects/caliup/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o /Users/michelebombardi/Desktop/ReactNativeProjects/caliup/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/CaliUp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/CaliUp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist`
I really need to publish my app on the app store before the end of the week.
I've already try all suggested solutions but nothin works.
Could anyone help me?
First try this:
watchman watch-del-all && rm -rf node_modules
If you install node using Homebrew uninstall it and install node from here.(https://nodejs.org/en/)
Now if you used yarn to install node modules:
Try npm install
This error is caused by a failed third party library download in the build step. In your home folder there should be a ~/.rncache directory with a number of compressed C++ libraries. The error occurs when one or more of these files fails to download completely from the github amazon s3 servers. (likely in China)
The problem sticks around because the script in the react-native xcode build doesn't know how to resume the broken download. So you can fix this by deleting your ~/.rncache folder and because these folders are extracted into your modules you should also rm -rf node_modules and reinstall.
More info can be found here and here
May be this will work. Try these steps:
Backup your icons, images etc from ios folder.
Check that app name is set for key "name" in {project-root}\app.json file.
Delete ios/ and android/ directories
Run react-native eject
Replace the icons,images etc you copied earlier
Run react-native link
Launch you app from Xcode using short cut key command+r

Error installing grails with SDK - Curl issue

I am having trouble installing Grails via SDK.I installed SDK via the instruction on https://grails.org/download.html#sdkman and sdk installed correctly
$ sdk version
SDKMAN 5.1.4+78`
But when I executed
$ sdk install grails
I am getting output in the terminal
$ sdk install grails
Downloading: grails 3.2.0.RC2
In progress...
######################################################################## 100.0%
curl: (56) SSLRead() return error -36
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of /Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip or
/Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip.zip, and cannot find /Users/hwmehwme/.sdkman/archives/grails-3.2.0.RC2.zip.ZIP, period.
Stop! The archive was corrupt and has been removed! Please try installing again.
I do restarting the terminal and installed again but same issue again.
What am I missing in installation? is there other dependency is needed ? Any help is much appreciated!

Resources