Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • RachelWu
    Junior Member
    • Jun 2011
    • 4

    error with velvet

    Hello, I download the velvet software package from EBI ( http://www.ebi.ac.uk/~zerbino/velvet/ ). There is an error when I install it.

    src / readSet.c: 34:18: fatal error: zlib.h: No such file or directory
    compilation terminated.
    make: *** [obj / readSet.o] Error 1

    Who knows what the problem is and how to solve it?
    Thanks!
  • mandar.sahasrabuddhe
    Junior Member
    • Aug 2011
    • 1

    #2
    I too am getting the same error and inspite of trying out changes in path and file name I am unable to install Velvet. Any pointers would be really appreciated.

    Comment

    • ramadatta.88
      Junior Member
      • Sep 2011
      • 7

      #3
      problem installing velvet

      Hi RachelWu, mandar.sahasrabuddhe

      did any of you resolved the problem.PLease let me know.I m new to assembling and i m facing the same error..

      src/readSet.c:35:18: error: zlib.h: No such file or directory
      src/readSet.c: In function âreadFastQGZFileâ:
      src/readSet.c:488: error: âgzFileâ undeclared (first use in this function)
      src/readSet.c:488: error: (Each undeclared identifier is reported only once
      src/readSet.c:488: error: for each function it appears in.)
      src/readSet.c:488: error: expected â;â before âfileâ
      src/readSet.c:497: error: âfileâ undeclared (first use in this function)
      : :
      : :
      : :


      Thank you.

      Comment

      • arvid
        Senior Member
        • Jul 2011
        • 156

        #4
        You need to install zlib-devel (or whatever the equivalent on your server distribution is).

        Comment

        • RachelWu
          Junior Member
          • Jun 2011
          • 4

          #5
          Enter the folder which has zlib.h in terminal, run "make".
          Then install velvet.

          Originally posted by ramadatta.88 View Post
          Hi RachelWu, mandar.sahasrabuddhe

          did any of you resolved the problem.PLease let me know.I m new to assembling and i m facing the same error..

          src/readSet.c:35:18: error: zlib.h: No such file or directory
          src/readSet.c: In function âreadFastQGZFileâ:
          src/readSet.c:488: error: âgzFileâ undeclared (first use in this function)
          src/readSet.c:488: error: (Each undeclared identifier is reported only once
          src/readSet.c:488: error: for each function it appears in.)
          src/readSet.c:488: error: expected â;â before âfileâ
          src/readSet.c:497: error: âfileâ undeclared (first use in this function)
          : :
          : :
          : :


          Thank you.

          Comment

          • Biomicrogen
            Junior Member
            • Aug 2012
            • 6

            #6
            zlib error as well

            I am having the same error on Ubuntu 12. I installed the zlib with the make command with no errors, but I still get the same no zlib.h file found. I ensured the velvet makefile was pointed to the correct path and still compiling error. No velveth or velvetg files created. Ubuntu does have an older version of velvet which it will install correctly which I can use, however it installs with the default kmer=31. How can I recompile this velvet version with a custom kmer value? Please help! Thanks!

            Comment

            • Torst
              Senior Member
              • Apr 2008
              • 275

              #7
              Originally posted by RachelWu View Post
              Hello, I download the velvet software package from EBI ( http://www.ebi.ac.uk/~zerbino/velvet/ ). There is an error when I install it.
              src / readSet.c: 34:18: fatal error: zlib.h: No such file or directory
              compilation terminated.
              make: *** [obj / readSet.o] Error 1
              I have never seen this problem, so I went to a plain Ubuntu 12 computer, and downloaded http://www.ebi.ac.uk/~zerbino/velvet/velvet_1.2.07.tgz . When I typed "make" I got the same error as you.

              Velvet actually comes bundled with its own copy of zlib (it is used to handle .gz compressed files). HOWEVER, it does not use it by default anymore (it used to).

              To compile it with the bundled zlib, just type "make BUNDLEDZLIB=1" instead of just "make" and everything should work.

              If you want to enable a larger k-mer size too, type "make BUNDLEDZLIB=1 MAXKMERLENGTH=127".

              Hope this helps!

              Comment

              • Torst
                Senior Member
                • Apr 2008
                • 275

                #8
                Originally posted by arvid View Post
                You need to install zlib-devel (or whatever the equivalent on your server distribution is).
                I think that is correct for Redhat/Fedora/Centos:

                Code:
                % sudo yum install zlib-devel
                For Ubuntu/Debian, you need to install zlib1g-dev:

                Code:
                % sudo apt-get install zlib1g-dev
                If you do the above, then "make" should succeed. Otherwise just type "make BUNDLEDZLIB=1".

                Comment

                • Biomicrogen
                  Junior Member
                  • Aug 2012
                  • 6

                  #9
                  still an issue

                  So I tried to use the BUNDLEDZLIB=1 compile option and It did compile. That being said the veleth and velvetg application files did appear in the velvet directory, but when I tried to run them (from the velvet directory) the command was not found. Any ideas?

                  Comment

                  • DZhang
                    Senior Member
                    • Jun 2010
                    • 177

                    #10
                    Biomicrogen,

                    How did you run velveth/g? Try put ./ in front of velveth/g.

                    Best regards,
                    Douglas

                    Comment

                    • shrujan
                      Member
                      • Aug 2012
                      • 38

                      #11
                      velvetg and velveth errors

                      Hi,

                      So I too tried to use the BUNDLEDZLIB=1 compile option and It did compile. That being said the veleth and velvetg application files did appear in the velvet directory, but when I tried to run them (from the velvet directory) the command was not found.

                      when i gave a velvetg or vveth command it is giving an error. The following is the problem :

                      shrujan@ubuntu:~/NGS_Practice/Staphylococcus/Assembly$ ~/Programs/velvet_1.2.08 /./velvetg Kmer_71 -ins_length 200 -ins_length_sd 50 -scaffolding yes -cov_cutoff10 -min_contig_lgth 300 -read_trkg yes
                      bash: /home/shrujan/Programs/velvet_1.2.08: No such file or directory

                      So please guide me with the valuable solutions.

                      Thank you and i hope for a quick reply.
                      Shrujan kumar Madadha.

                      Comment

                      Latest Articles

                      Collapse

                      • SEQadmin2
                        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
                        by SEQadmin2


                        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


                        Here are nine questions we think about, in roughly the order they matter, before...
                        Today, 07:11 AM
                      • SEQadmin2
                        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                        by SEQadmin2


                        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                        ...
                        06-02-2026, 10:05 AM
                      • SEQadmin2
                        Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                        by SEQadmin2


                        With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                        Introduction

                        Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                        05-22-2026, 06:42 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, Yesterday, 06:09 AM
                      0 responses
                      16 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-09-2026, 11:58 AM
                      0 responses
                      36 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-05-2026, 10:09 AM
                      0 responses
                      42 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 06-04-2026, 08:59 AM
                      0 responses
                      49 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...