Install Qt 4 ubuntu 17.04 - linux

I need to install Qt 4 in my computer to run a specific software. I've download Qt 4.8.6 from: https://download.qt.io/archive/qt/4.8/4.8.6/.
I followed the steps from the link http://doc.qt.io/qt-4.8/install-x11.html, but after I use make (step 3) I received the message:
Makefile:1624: recipe for target 'obj/release/pcre_exec.o' failed
make[1]: * [obj/release/pcre_exec.o] Error 1
make[1]: Leaving directory '/usr/lib/qt/src/script'
Makefile:602: recipe for target 'sub-script-make_default-ordered' failed
make: * [sub-script-make_default-ordered] Error 2
I've already tried this recomendations from the software (that I want to install after installed Qt4), and I stop at the same make command.
Installation example (bash notation):
VERS="4.x.y" # Set Qt version number
SRCDIR="${HOME}/src" # Set path for source files
mkdir $SRCDIR
cd $SRCDIR
SRC="http://origin.releases.qt-project.org/qt4/source"
wget -N $SRC/qt-everywhere-opensource-src-$VERS.tar.gz
tar -xzvf qt-everywhere-opensource-src-$VERS.tar.gz
cd qt-everywhere-opensource-src-$VERS
INSTDIR="/usr/local"
PLATFORM="linux-g++-64"
O1="-release -opensource -static"
O2="-qt-zlib -no-gif -qt-libpng -qt-libmng -qt-libtiff -qt-libjpeg"
NO="-nomake examples -nomake demos -nomake docs -nomake translations"
./configure $O1 $O2 $NO -prefix $INSTDIR/qt_$VERS -platform $PLATFORM
# Confirm the license agreement
Someone knows how to proceed?
Thanks.

Ubuntu 17.04 has it in repositories:
sudo apt install qt4-default

If you want to install qt creator(IDE) then just issue the following command
sudo apt install qt4-default
sudo apt install qtcreator

Related

How to compile dansguardian

I am trying to download dansguardian on centos 7 but I am not able to do so. Please anybody can help for this.
I have downloaded tar.bz2 file of dansguardian and then performed these step
tar -xjvf taf_file
./configure
make
make: *** No targets specified and no makefile found. Stop.
make install
Trying install all development tools like this:
yum groupinstall 'Development Tools'
then run:
./configure
make
make install

Installing g++ 5 on Amazon Linux

I'm trying to install g++ 5.x on an EC2 instance running Amazon Linux; in Amazon's central repository the latest version is 4.8.3. What configuration to can I make to allow yum to find a newer gcc-c++ package?
Late to the party, but for those like me:
sudo yum install gcc72 gcc72-c++
For Amazon Linux 2, you have to install the following
sudo yum install -y gcc-c++
It's a requirement to install some Ruby gems that need native extensions
Installing gcc5:
# Install required libraries
sudo yum install libmpc-devel mpfr-devel gmp-devel
# Gather source code
export GCC_VERSION=5.5.0
cd /tmp
curl -o "gcc-${GCC_VERSION}.tar.gz" \
https://ftp.gnu.org/gnu/gcc/gcc-${GCC_VERSION}/gcc- ${GCC_VERSION}.tar.gz
tar xvzf "gcc-${GCC_VERSION}.tar.gz"
cd gcc-${GCC_VERSION}
# Configure and compile
./configure --with-system-zlib --disable-multilib --enable-languages=c,c++
make -j 8
# Install
sudo make install
Ensure /usr/local/bin/ is in your PATH
You may advantageously install version 7.3.0 released on 25th January 18 here
You can run yum whatprovides g++ and it will output a list of different packages versions that provide the the g++ file.
example output:
...
gcc-c++-7.3.1-12.amzn2.x86_64 : C++ support for GCC
Repo : amzn2-core
Matched from:
Filename : /usr/bin/g++
gcc-c++-7.3.1-13.amzn2.x86_64 : C++ support for GCC
Repo : amzn2-core
Matched from:
Filename : /usr/bin/g++
On Amazon Linux 2 you can run sudo yum groupinstall "Development Tools" which will install many compilers and dependencies including g++
Probably like "amazon linux ami release 2016.03", when you have gcc-4.8.3 .
This OS is very close to CentOS 7.2 / RHEL 7.
Please try : # yum install centos-release-scl
If OK, you can do : # yum install devtoolset-4-gcc-c++ ... and get g++, gcc version 5.2.1 .
Enabling "5.2.1" : $ scl enable devtoolset-4 bash . Be aware that the setting is valid for the current terminal session only.
If any issues, I can supply a link to the four packages required for g++, gcc.

How to install Petite Chez Scheme on Ubuntu?

How to install Petite Chez Scheme on Ubuntu?
I run Ubuntu 15.10 and try to install pcsv8.4-a6le.tar.gz (non-threaded, 64 bit) for Linux.
After having unpacked this tar in /usr/locale, I enter the commands
sudo ./configure
sudo make install
from within the custom directory.
However, instead of a clean install, I get the following errors (which I hope someone can help me out with):
nlykkei#nlykkei-Studio-XPS-1640:/usr/local/csv8.4/custom$ sudo make install
if [ yes = no ]; then if [ ! -f ./scheme ]; then /bin/rm -f ./scheme; ln -s ../bin/a6le/scheme ./scheme; fi; fi
if [ ! -f ./petite ]; then /bin/rm -f ./petite; ln -s ./scheme ./petite; fi
/bin/rm -f ./scheme
echo "const char *S_date_stamp = \"`date +%m%d%Y%H%M%S`\";" > datestamp.c
gcc -m64 -rdynamic -o ./scheme datestamp.c ../boot/a6le/kernel.o ../boot/a6le/custom.o -lm -ldl -lncurses -lrt
/usr/bin/ld: cannot find -lncurses
collect2: error: ld returned 1 exit status
Mf-a6le:22: recipe for target 'scheme' failed
make[2]: *** [scheme] Error 1
Makefile:47: recipe for target 'buildpetite' failed
make[1]: *** [buildpetite] Error 2
Mf-install:64: recipe for target 'install' failed
make: *** [install] Error 2
On recent versions of Ubuntu (and future versions of Debian e.g. "Buster", and other Debian based distros), you can install Chez Scheme directly from the repo(s) by:
sudo apt install chezscheme
Previously you had to install it by compiling from source. Chez Scheme has been open source, for a few years now, and can be compiled from source, if it is not directly installable from the distribution's repo(s). Just download the source code compile and install. This will install not just the "petite" runtime version but also the full compiler. You can compile and install the software with:
./configure
sudo make install
Full build and install instructions are available here.
Pre-requisites for building are:
GNU Make
GCC
Header files and libraries for ncurses
Header files and libraries for X windows
On Ubuntu, install the libncurses5-dev package to get libncurses.so. (You can discover this by visiting http://packages.debian.org/file:libncurses.so (sadly, this doesn't seem to work for http://packages.ubuntu.com/file:libncurses.so).)
You may find other linkage errors if Chez requires other libraries to have development packages installed too. Use the same technique as above.
Go directly building from their Github.
ChezScheme
And then just do
./configure
sudo make install
Prerequisites according to Building are:
GNU Make
gcc
Header files and libraries for ncurses
Header files and libraries for X windows
And yes in case On Ubuntu, install the libncurses5-dev as Chris stated. Did just that and have no errors shown in clean install.
Chez Scheme has been open sourced since this question was asked. Since Bionic (18.04LTS) the full chezscheme is available as a repository.
First do
sudo apt update
then install the package:
sudo apt install chezscheme
This provides both the petite interpreter and the full scheme compiler.
There is also a PPA for trusty and xenial here:
https://launchpad.net/~jonathonf/+archive/ubuntu/lisp?field.series_filter=
Download the RPM package instead and use alien from terminal to produce a deb file:
fakeroot alien PetiteChezScheme-8.4-1.x86_64.rpm
You may need to install fakeroot, alien for this to work:
apt-get install fakeroot alien
Then you'll have a deb file. If you are on a desktop you can just double click the file and it will open Software Center and you can click install and it will fix your dependency problems.

Can't make menuconfig

I use Debian 7.4 Wheezy. I trying to upgrade my kernel, but when I type "make menuconfig" it says:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
I trying to install "libncurses5-dev", but I get the error:
E: Unable to locate package libncurses5-dev
P.S.
I downloaded and installed the packages manually and now everything is okay!
Thanks a lot!!
You should have run (as root)
aptitude update
aptitude search libncurses
that would suggest you the right package name.
Then try
aptitude install libncurses-dev
and
aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64
At last, use make-kpkg --initrd binary to compile your kernel. (it will produce *.deb files in the parent directory). You want to configure /etc/kernel-pkg.conf and perhaps /etc/kernel-img.conf
I had the same problem. In my case installation of package libncursesw5-dev solved the issue.
make menuconfig needs ncurses libraries try following command to install ncurses library
sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev
make menuconfig
worked for me after i installed all the libaries, and added myself sudo permission, i was also using this to cross_compile stuff
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
%b37399 ALL=(ALL:ALL) NOPASSWD:ALL
For Fedora(Red Hat);
$ make menuconfig
#error encountered :
make[1]: *** [scripts/kconfig/Makefile:210: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:588: menuconfig] Error 2
#resolution :
$ sudo yum install libncurses-dev
Thanks
Depending on the project the menuconfig could be made with the kconfiglib library:
https://pypi.org/project/kconfiglib/
For these projects it's required to:
Install Python (I tested it with Python2.7, but I think newer Pythons are just fine)
Install pip (if it's not done with Python)
And then the pip install kconfiglib
And for some projects, this will fix the error instead of the libcurses package.
Just as example here is one kconfiglib based project which prints the same error, but will not be fixed with libcurse:
https://github.com/polarfire-soc/hart-software-services

Installing the libs3 on linux

Could someone pls give me a detailed procedure to intsall libs3 on LINUX? Just the procedure will do.
Thanks in advance.
These are the instructions to install libs3 on centos on a 64 bit machine.
According to their README, you are supposed to build an rpm package out of their source code using 'rpmbuild -ta '
1.) So first, install rpmbuild if it isn't installed already. [My install location is the default one: ~/rpmbuild]
2.) Clone libs3.
git clone https://github.com/bji/libs3.git
3.) Rename folder as libs3-trunk [rpmbuild complained if its name wasn't that, so...], create a tar.gz, copy it to SOURCES folder inside rpmbuild directory.
mv libs3 libs3-trunk
tar -zcvf libs3-trunk.tar.gz libs3-trunk/
mv libs3-trunk.tar.gz ~/rpmbuild/SOURCES
cd ~/rpmbuild/SOURCES
4.) Build the rpm
rpmbuild -ta libs3-trunk.tar.gz
cd ../RPMS/x86_64
5.) Install dependency libs3-2-2.0-5.1.x86_64.rpm from
[http://rpm.pbone.net/index.php3/stat/4/idpl/21900926/dir/centos_6/com/libs3-2-2.0-5.1.x86_64.rpm.html] OR [ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/dalgaaf:/ceph:/extra/CentOS_CentOS-6/x86_64/libs3-2-2.0-5.1.x86_64.rpm]
6.) Install the rpm:
Execute following as sudo:
rpm -Uvh libs3-2-2.0-5.1.x86_64.rpm
rpm -Uvh --replacefiles libs3-trunk-1.x86_64.rpm
rpm -Uvh libs3-devel-trunk-1.x86_64.rpm
7.) Install libcurl-devel/libxml2-devel through yum if you get following error:
make: curl-config: Command not found
make: xml2-config: Command not found
sudo yum install libcurl-devel.x86_64
sudo yum install libxml2-devel.x86_64
For ubuntu versions >=14.04, libs3-dev is available as an Ubuntu package.
So you just need to run:
sudo apt-get install libs3-dev

Resources