Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: ngspice installation help

  1. #1
    Join Date
    May 2007
    Location
    Mexico City
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    [SOLVED] ngspice installation help

    Hi. I've been using oregano for some simple circuit simulations with gnucap (I really don't need anything more complex right now), and I wanted to try ngspice as the simulation engine.

    I checked the ngspice home page first, and they pointed to the ubuntu repository, but I couldn't find any ngspice package in any of the ubuntu repositories (I'm using ubuntu v7.10). So I tried the .deb packages from the ngspice project home page.

    I downloaded two files: ngspice[...].deb and xspice[...].deb, but whenever I try to install either of them, I get a "dependency is not satisfiable" error pointing to the exact other package.

    I tried to install them through the terminal with the exact same result. Is there something I'm doing wrong? Do I have to use a particular option to install two mutually dependent packages? Or maybe they are in some repository I don't know of...?

    I'm not sure how to compile the .tar packages, and I couldn't find any more info in the home page... maybe that's the only option I'm left with. So if somebody could please tell me how to compile a package, maybe a link to a tutorial or something like that, it'd be really helpful (especially 'cause it seems I'll be compiling many other things in the future)
    Last edited by nuir; April 29th, 2009 at 06:06 AM.

  2. #2
    Join Date
    Dec 2005
    Beans
    301
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ngspice installation help

    I have hit the same problem.

    They were listed in 7.04 but I can't find them in 7.10 repos.
    gEDA docs seem to indicate that ngspice is included in the packages but I haven't been able to verify that.

    I am trying to get started in Electronics Design in Linux, so I hope to get the circuit simulation working.
    --
    Where's there's smoke, There are mirrors.
    Give me Free as in Freedom not Speech or Beer.
    Thank You and Welcome to the Internet.

  3. #3
    Join Date
    Mar 2006
    Beans
    13

    Re: ngspice installation help

    I managed to get the two debs to install by installing them using the command line.

    For example:

    Code:
    sudo dpkg -i xspice_17.0.0-1_i386.deb
    sudo dpkg -i ngspice_17.0.0-1_i386.deb
    That should work, if not, I tried install both with only one dpkg -i command and had to go back and take care of ngspice.

    I hope this helps.

  4. #4
    Join Date
    Mar 2006
    Beans
    13

    Re: ngspice installation help

    Hi everyone, I created an installer script that will install the packages for you.

    You can get it here:
    NG SPICE INSTALLER ZIP

    In this package is also a test file.

    After double clicking and executing the .sh file and entering your password, it will install xspice and ngspice for you.

    To test if your installation was successful, I've included a test file - amplifier0.cir

    To run this, enter into a terminal:

    Code:
    ngspice "LOCATION OF THE TEST FILE"
    You could just type ngspice into a terminal followed by a space and then drag the file in, this will fill in the location and name of the test file for you.

    I'm sorry that the test bit isn't very clear, but the installer will work fine.

  5. #5
    Join Date
    Aug 2005
    Beans
    1

    Re: ngspice installation help

    what worked for me is the following:

    Get the ngspice and xspice .deb files (they're contained in NG SPICE INSTALLER ZIP posted by Twister594.)

    Then type in your console:

    dpkg -i 'path to ngspice file' --force-all
    dpkg -i 'path to xspice file' --force-all


    The reason this worked for me is that it wouldn't install because the two packages were mutually dependent, and the one wouldn't install without the other one already being installed, so if you just force it to install regardless of the dependencies it works! You can then try the test file in Twister594's script. [Thanks for the script man!]

  6. #6
    Join Date
    Dec 2005
    Beans
    301
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: ngspice installation help

    So xsoice and ngspice are still available just removed from the repos ?
    Did you download those from packages.ubuntu.com (puc) ?

    What is up with the repos ?
    gspiceui is listed at puc but I can't find it in Synaptic.
    --
    Where's there's smoke, There are mirrors.
    Give me Free as in Freedom not Speech or Beer.
    Thank You and Welcome to the Internet.

  7. #7
    Join Date
    Mar 2006
    Beans
    13

    Re: ngspice installation help

    I tracked down the deb files from source forge.

    SourceForge

    These files are under 17.binary.32bit

    I used ngspice....deb and xspice....deb

  8. #8
    Join Date
    Mar 2008
    Location
    Mexico City
    Beans
    14
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: ngspice installation help

    Quote Originally Posted by abrie View Post
    what worked for me is the following:

    Get the ngspice and xspice .deb files (they're contained in NG SPICE INSTALLER ZIP posted by Twister594.)

    Then type in your console:

    dpkg -i 'path to ngspice file' --force-all
    dpkg -i 'path to xspice file' --force-all


    The reason this worked for me is that it wouldn't install because the two packages were mutually dependent, and the one wouldn't install without the other one already being installed, so if you just force it to install regardless of the dependencies it works! You can then try the test file in Twister594's script. [Thanks for the script man!]

    Sorry but i think the way to get it works is this one... at least it works for me...
    Code:
    sudo dpkg --force-all -i xspice_17.0.0-1_i386.deb
    sudo dpkg --force-all -i ngspice_17.0.0-1_i386.deb
    Greetings!
    Last edited by carlosalvatore; March 27th, 2008 at 09:03 AM.

  9. #9
    Join Date
    Jan 2007
    Location
    Malaysia
    Beans
    9
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: ngspice installation help

    Sorry, typing error (See below)
    Last edited by mafifk; May 14th, 2008 at 07:37 AM. Reason: Sorry, typing error (See below)

  10. #10
    Join Date
    Jan 2007
    Location
    Malaysia
    Beans
    9
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Lightbulb Re: ngspice installation help

    Hello,
    You can compile it by yourself.
    First download the source at:
    HTML Code:
    http://sourceforge.net/project/showfiles.php?group_id=38962&package_id=31152
    Download the: ng-spice-rework-17.tar.gz or the latest.
    Download from Synaptic:
    libgtk2.0-dev(with all the component highlight)
    libxaw7-dev(with all the component highlight)
    libxaw7-header(with all the component highlight)
    Go to the directory of ngspice.
    Code:
    $ aclocal
    Code:
    $ ./autogen.sh
    Code:
    $ ./configure --enable-xgraph
    Code:
    $ make
    Code:
    $ sudo make install
    Walla...
    It will work...
    Please PM me if it don't work.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •