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
                        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                        by SEQadmin2


                        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                        The systematic characterization of the human proteome has
                        ...
                        07-20-2026, 11:48 AM
                      • SEQadmin2
                        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
                        by SEQadmin2



                        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
                        ...
                        07-09-2026, 11:10 AM
                      • SEQadmin2
                        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
                        by SEQadmin2



                        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

                        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
                        07-08-2026, 05:17 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, 07-24-2026, 12:17 PM
                      0 responses
                      20 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-23-2026, 11:41 AM
                      0 responses
                      19 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-20-2026, 11:10 AM
                      0 responses
                      26 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 07-13-2026, 10:26 AM
                      0 responses
                      38 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...