Unconfigured Ad

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

    #1

    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
                        Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                        by SEQadmin2



                        Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                        Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                        ...
                        10-14-2026, 09:55 AM
                      • SEQadmin2
                        New Genomics Technologies Take Aim at Long-Standing Limits
                        by SEQadmin2


                        Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                        We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                        ...
                        09-28-2026, 10:25 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, 10-22-2026, 11:13 AM
                      0 responses
                      29 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-22-2026, 10:48 AM
                      0 responses
                      21 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-15-2026, 10:52 AM
                      0 responses
                      38 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-14-2026, 05:39 AM
                      0 responses
                      44 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...