error in installing zlib

Asked by Anees khan

log file

 Set environment variables
 Unpack zlib

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
 Enter zlib directory
/home/anees/MG5_aMC_v3.2.0/MG5_aMC_v3_2_0/HEPTools/HEPToolsInstallers/installZLIB.sh: line 25: cd: zlib-1.2.10/: No such file or directory
 Configure zlib
/home/anees/MG5_aMC_v3.2.0/MG5_aMC_v3_2_0/HEPTools/HEPToolsInstallers/installZLIB.sh: line 28: ./configure: No such file or directory
 Compile zlib
make: *** No targets specified and no makefile found. Stop.
 Install zlib
make: *** No rule to make target 'install'. Stop.
 Finished zlib installation

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
Last query:
Last reply:
Revision history for this message
Anees khan (aneeskhan) said :
#1

is their any problem in zlib?

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#2

Looks like an internet connection error.
More explicitly you fail to download the tarball associated to zlib:
http://www.zlib.net/fossils/zlib-1.2.10.tar.gz

I have checked and I do not have issue on my side so two options
1) the problem is now resolved
2) the issue is that they have put in place some firewall and that you are banned to access that website (either temporarly or permanently)

Cheers,

Olivier

Revision history for this message
Anees khan (aneeskhan) said :
#3

i want to install pithia8 without zlib i cant able to install it.So how can i resolve this problem?

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#4

pythia8 need to be linnked to zlib in order to be used within Mg5aMC.

Cheers,

Olivier

> On 22 Nov 2021, at 09:01, Anees khan <email address hidden> wrote:
>
> Question #699586 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/699586
>
> Status: Answered => Open
>
> Anees khan is still having a problem:
> i want to install pithia8 without zlib i cant able to install it.So how
> can i resolve this problem?
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Anees khan (aneeskhan) said :
#5

http://www.zlib.net/fossils/zlib-1.2.10.tar.gz
I am able to download tar file from link above how can i use it now?

Revision history for this message
Anees khan (aneeskhan) said :
#6

http://www.zlib.net/fossils/zlib-1.2.10.tar.gz
i downloaded it by using firfox

Revision history for this message
Anees khan (aneeskhan) said :
#7

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
jackfleming (jackfleming11) said (last edit ):
#8

First, one creates a few folders and set the environment variables, so that the folders are "useful".

mkdir /home/scoobydoo/ourcompiledruby
mkdir -p /home/scoobydoo/lib/our_gems
One adds the following 2 lines to the /home/scoobydoo/.bashrc

export PATH="/home/scoobydoo/ourcompiledruby/bin:$PATH"
export GEM_HOME="/home/scoobydoo/lib/our_gems"
Restart the bash shell by closing the current terminal window and opening a new one or by typing

bash
on the command line of the currently open window. The changes to the /home/scoobydoo/.bashrc do not have any effect on terminal windows/sessions that were started prior to the saving of the modified version of the /home/scoobydoo/.bashrc The idea is that the /home/scoobydoo/.bashrc is executed automatically at the start of a session, even if one logs on over ssh.

Revision history for this message
jackfleming (jackfleming11) said :
#9

2)=============================

Now one makes sure that the zlib development packages are available on the system. As of April 2011 I haven't sorted the details of it out, but

apt-get install zlibc zlib1g-dev zlib1g
seems to be sufficient on a Debian system. The idea is that both, the library file and header files, are available in the system's "official" search path. Usually apt-get and alike place the header files to the /usr/include and library files to the /usr/lib

3)=============================

./configure --prefix=/home/scoobydoo/ourcompiledruby
make
make install
4)=============================

If a console command like

which ruby
prints to the console

/home/scoobydoo/ourcompiledruby/bin/ruby
then the newly compiled version is the one that gets executed on the command

ruby --help
5)=============================

The rest of the programs, gem, irb, etc., can be properly executed by using commands like:

ruby `which gem` install rake
ruby `which irb`
It shouldn't be like that but as of April 2011 I haven't figured out any more elegant ways of doing it. If the

ruby `which gem` install rake...... https://www.idcgili.com/
gives the zlib missing error again, then one should just try to figure out, how to make the zlib include files and library available to the Ruby configure script and recompile. (Sorry, currently I don't have a better solution to offer.)

May be a dirty solution might be to add the following lines to the /home/scoobydoo/.bashrc

alias gem="` which ruby` `which gem` "
alias irb="` which ruby` `which irb` "
Actually, I usually use

alias irb="` which ruby` -KU "
but the gem should be executed without giving the ruby the "-KU" args, because otherwise there will be errors.